1stralloc_starts(3) Library Functions Manual stralloc_starts(3)
2
3
4
6 stralloc_starts - check if string is prefix of stralloc
7
9 #include <stralloc.h>
10
11 int stralloc_starts(stralloc* sa,const char* in);
12
14 stralloc_starts returns 1 if the \0-terminated string in in, without
15 the terminating \0, is a prefix of the string stored in sa. Otherwise
16 it returns 0. sa must already be allocated.
17
19 1 if in is a prefix of sa, otherwise 0.
20
22 str_starts(3)
23
24
25
26 stralloc_starts(3)