1stralloc_diffs(3) Library Functions Manual stralloc_diffs(3)
2
3
4
6 stralloc_diffs - check if string is prefix of stralloc
7
9 #include <stralloc.h>
10
11 int stralloc_diffs(stralloc* a,const char* b);
12
14 stralloc_diffs returns negative, 0, or positive, depending on whether
15 the \0-terminated string in a, without the terminating \0, is lexico‐
16 graphically smaller than, equal to, or greater than the string stored
17 in a.
18
20 <0 if a<b, 0 if a==b, >0 if a>b.
21
23 stralloc_diff(3), stralloc_starts(3), str_diff(3)
24
25
26
27 stralloc_diffs(3)