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

NAME

6       stralloc_copy - copy data into a stralloc
7

SYNTAX

9       #include <stralloc.h>
10
11       int stralloc_copy(stralloc* sato,stralloc* safrom);
12

DESCRIPTION

14       stralloc_copy  copies  the  string  stored in safrom into sa. It is the
15       same  as  stralloc_copyb(&sato,  safrom.s,  safrom.len).   safrom  must
16       already be allocated.
17
18       The data that sa previously contained is overwritten and truncated.
19
20       If  stralloc_copy  has trouble allocating memory, it returns 0.  Other‐
21       wise it returns 1.
22

RETURN VALUE

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

SEE ALSO

27       stralloc_copyb(3)
28
29
30
31                                                              stralloc_copy(3)
Impressum