stralloc_cat(3) - Linux man page

Name

stralloc_cat - append data to a stralloc

Syntax

#include <stralloc.h>

int stralloc_cat(stralloc* sato,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)