C Collections

cstring · Section 3

cstring_equals

cstring_equals - check whether the string equals a C string

C Collections (libccollections, -lccollections)

#include <ccollections/cstring.h>
 
bool cstring_equals(cstr s, const char *str);

This function returns true exactly when the content of s is identical to
str.

s     String to compare
str   C string to compare against

true if the contents are equal, false if they are not

Asserts if s is NULL

cstring_compare(3), cstring_starts_with(3), cstring_ends_with(3)