---
name: "append"
section: "3"
platform: "linux"
package: "alliance"
version: "5.1.1-3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/append"
---

# append(3)

append a chain\_list to an other chain\_list

## NAME

append - append a **chain\_list** to an other **chain\_list**

## SYNOPSYS

```
#include "mut.h"
chain_list ∗append(pt1, pt2)
chain_list ∗pt1,∗pt2;
```

## PARAMETERS

- *pt1*

  Pointer to a **chain\_list**

- *pt2*

  Pointer to a **chain\_list**

## DESCRIPTION

**append** appends the contains of the **chain\_list** pointed to by *pt2* at the end of the one pointed to by *pt1*.\
 The lists consistency is warranted by the use of the adequat **add** *functions.*

## RETURN VALUE

**append** *returns a pointer to the new head of list.* *If pt1 is not* **NULL***, it has the value of pt1, else it is* *pt2.*

## EXAMPLE

```
#include "mut.h"
#include "mlo.h"
void sig_names(s0, s1)
losig_list ∗s0, ∗s1;
{
	s0->NAMECHAIN = append(s0->NAMECHAIN, s1->NAMECHAIN);
}
```

## SEE ALSO

**mbk**(1), [**chain**(3)](/chain/3.md).
