1byte_diff(3) Library Functions Manual byte_diff(3)
2
3
4
6 byte_diff - compare two strings
7
9 #include <byte.h>
10
11 int byte_diff(const char *one,size_t len,const char *two);
12
14 byte_diff returns negative, 0, or positive, depending on whether the
15 string one[0], one[1], ..., one[len-1] is lexicographically smaller
16 than, equal to, or greater than the string one[0], one[1], ...,
17 one[len-1].
18
19 When the strings are different, byte_diff does not read bytes past the
20 first difference.
21
22
24 byte_equal(3)
25
26
27
28 byte_diff(3)