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

# stralloc\_cat(3)

append data to a stralloc

## NAME

stralloc\_cat - append data to a stralloc

## SYNTAX

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

int **stralloc\_cat**(stralloc\* *sato*,const stralloc\* *safrom*);

## DESCRIPTION

stralloc\_cat appends the string stored in *safrom* to *sa*. It is the same as **stralloc\_catb**(&*sato*, *safrom*.s, *safrom*.len). *safrom* must already be allocated.

The data that *sa* previously contained is overwritten and truncated.

## RETURN VALUE

1 for success, 0 on memory allocation failure.

## SEE ALSO

[stralloc\_catb(3)](/stralloc_catb/3.md)
