stralloc_cats(3)

stralloc_cats3

Append data to a stralloc

Usage

#include <libowfat/stralloc.h>

int stralloc_cats(stralloc* sa,const char* buf);

Overview

stralloc_cats appends a \0-terminated string from buf to the end of the string stored in sa, allocating space if necessary, and returns 1. If sa is unallocated, stralloc_cats is the same as stralloc_copys. If it runs out of memory, stralloc_cats leaves sa alone and returns 0.

Return value

1 for success, 0 on memory allocation failure.

Releases

8 releases since Debian 3.0 (Woody); the text changed 2 times.

  1. 3.0
  2. 7–11
  3. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.