1stralloc_copys(3)          Library Functions Manual          stralloc_copys(3)
2
3
4

NAME

6       stralloc_copys - copy data into a stralloc
7

SYNTAX

9       #include <stralloc.h>
10
11       int stralloc_copys(stralloc* sa,const char* buf);
12

DESCRIPTION

14       stralloc_copys  copies a \0-terminated string from buf into sa, without
15       the \0. It is the same as stralloc_copyb(&sa, buf, str_len(buf)).
16
17       The data that sa previously contained is overwritten and truncated.
18
19       If stralloc_copys runs out of memory, stralloc_copys  leaves  sa  alone
20       and return 0, otherwise it returns 1.
21

RETURN VALUE

23       1 for success, 0 on memory allocation failure.
24

SEE ALSO

26       stralloc_copyb(3)
27
28
29
30                                                             stralloc_copys(3)
Impressum