stralloc_cat - append data to a stralloc

NAME  SYNTAX  DESCRIPTION  RETURN VALUE  SEE ALSO 

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)


Updated 2024-01-29 - jenkler.se | uex.se