1stralloc_chop(3) Library Functions Manual stralloc_chop(3)
23
4
NAME
6stralloc_chop - remove and return last char
7
SYNTAX
9#include <stralloc.h>
1011
int stralloc_chop(stralloc* sa);
12
DESCRIPTION
14stralloc_chop removes the last char in the stralloc (if it is empty,
15stralloc_chop does nothing and returns -1). This character is cast to
16unsigned char and returned.
17
RETURN VALUE
19chopped character, or -1 if string was empty.
20
SEE ALSO
22stralloc_chomp(3)
2324
25
26
stralloc_chop(3)