1str_diff(3) Library Functions Manual str_diff(3)
2
3
4
6 str_diff - compare two ASCIIZ strings
7
9 #include <str.h>
10
11 int str_diff(const char* a,const char* b);
12
14 str_diff returns negative, 0, or positive, depending on whether the
15 string a[0], a[1], ..., a[n]=='\0' is lexicographically smaller than,
16 equal to, or greater than the string b[0], b[1], ..., b[m-1]=='\0'.
17
18 If the strings are different, str_diff does not read bytes past the
19 first difference.
20
22 strlen(3)
23
24
25
26 str_diff(3)