cstring · Section 3
cstring_ends_with
NAME
cstring_ends_with - check whether the string ends with a suffix
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cstring.h> bool cstring_ends_with(cstr s, const char *suffix);
DESCRIPTION
This function tells whether the content of s ends with suffix. An empty suffix always matches.
PARAMETERS
s String to test suffix Suffix to look for
RETURN VALUE
true if the string ends with suffix false if the string does not end with suffix, or if suffix is NULL
NOTES
Asserts if s is NULL