---
name: "stralloc_append"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/stralloc_append"
---

# stralloc\_append(3)

append a character to a stralloc

## NAME

stralloc\_append - append a character to a stralloc

## SYNTAX

**#include \<libowfat/stralloc.h\>**

int **stralloc\_append**(stralloc\* *sa*,const char\* *in*);

## DESCRIPTION

stralloc\_append appends the byte from \**buf* to the string stored in *sa*, allocating space if necessary, and returns 1.

If it runs out of memory, stralloc\_append leaves *sa* alone and returns 0.

## RETURN VALUE

1 for success, 0 on memory allocation failure.

## SEE ALSO

[stralloc\_copyb(3)](/stralloc_copyb/3.md)
