1stralloc_diffs(3) Library Functions Manual stralloc_diffs(3)
23
4
NAME
6stralloc_diffs - compare two strallocs
7
SYNTAX
9#include <stralloc.h>
1011
int stralloc_diff(const stralloc* a,const stralloc* b);
12
DESCRIPTION
14stralloc_diff returns negative, 0, or positive, depending on whether a
15is lexicographically smaller than, equal to, or greater than the string
16b.
17
RETURN VALUE
19<0 if a<b, 0 if a==b, >0 if a>b.
20
SEE ALSO
22stralloc_diffs(3), stralloc_starts(3)
2324
25
26
stralloc_diffs(3)