stralloc_diff(3) [debian man page]
stralloc_diffs(3) Library Functions Manual stralloc_diffs(3) NAME
stralloc_diffs - compare two strallocs SYNTAX
#include <stralloc.h> int stralloc_diff(const stralloc* a,const stralloc* b); DESCRIPTION
stralloc_diff returns negative, 0, or positive, depending on whether a is lexicographically smaller than, equal to, or greater than the string b. RETURN VALUE
<0 if a<b, 0 if a==b, >0 if a>b. SEE ALSO
stralloc_diffs(3), stralloc_starts(3) stralloc_diffs(3)
Check Out this Related Man Page
STRCMP(3) BSD Library Functions Manual STRCMP(3) NAME
strcmp, strncmp -- compare strings LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <string.h> int strcmp(const char *s1, const char *s2); int strncmp(const char *s1, const char *s2, size_t len); DESCRIPTION
The strcmp() and strncmp() functions lexicographically compare the nul-terminated strings s1 and s2. RETURN VALUES
The strcmp() and strncmp() return an integer greater than, equal to, or less than 0, according to whether the string s1 is greater than, equal to, or less than the string s2. The comparison is done using unsigned characters, so that '200' is greater than '