1stralloc_chomp(3) Library Functions Manual stralloc_chomp(3)
23
4
NAME
6stralloc_chomp - remove trailing CR, LF or CRLF
7
SYNTAX
9#include <stralloc.h>
1011
int stralloc_chomp(stralloc* sa);
12
DESCRIPTION
14stralloc_chomp removes trailing CRLF, CR or LF from sa and returns the
15number of removed characters (i.e. 0, 1 or 2).
16
RETURN VALUE
18number of removed characters (0, 1, or 2).
19
SEE ALSO
21stralloc_chop(3)
2223
24
25
stralloc_chomp(3)