C Collections

cstring · Section 3

cstr_compare

cstr_compare - compare the string to a C string

C Collections (libccollections, -lccollections)

#include <ccollections/cstring.h>
 
cstr_compare(s, str);

This macro just forwards its arguments to cstring_compare().

s     cstr to compare
str   C string to compare against

A negative value if s < str, zero if the two are equal and a positive
value if s > str

cstring_compare(3), cstr_equals(3)