---
name: "qb_list_splice"
section: "3"
platform: "linux"
package: "libqb"
version: "2.0.10-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/qb_list_splice"
---

# qb\_list\_splice(3)

Join two lists.

## NAME

qb\_list\_splice - Join two lists.

## SYNOPSIS

```
#include <qb/qblist.h>

static void qb_list_splice(
    struct qb_list_head   *list,  /* the new list to add. */
    struct qb_list_head   *head   /* the place to add it in the first list.*/
);
```

## PARAMS

**list** *the new list to add.*

**head** *the place to add it in the first list.*

## DESCRIPTION

## STRUCTURES

```
struct qb_list_head {
    struct   next;
    struct   prev;
};
```

## NOTE

*The "list" is reinitialised*

## SEE ALSO

[*qb\_list\_empty*(3)](/qb_list_empty/3.md), [*qb\_list\_add\_tail*(3)](/qb_list_add_tail/3.md), [*qb\_list\_add*(3)](/qb_list_add/3.md), [*qb\_list\_splice\_tail*(3)](/qb_list_splice_tail/3.md), [*qb\_list\_length*(3)](/qb_list_length/3.md), [*qb\_list\_replace*(3)](/qb_list_replace/3.md), [*qb\_list\_init*(3)](/qb_list_init/3.md), [*qb\_list\_is\_last*(3)](/qb_list_is_last/3.md), [*qb\_list\_del*(3)](/qb_list_del/3.md)

## COPYRIGHT

Copyright (C) 2010-2020 Red Hat, Inc.
