Skip to content

sprefix

Category: string
GitHub: cute_string.h


Check to see if the string's prefix matches.

#define sprefix(s, prefix) cf_string_prefix(s, prefix)
Parameters Description
s The string. Can be NULL.
prefix A string to compare against the beginning of s.

Return Value

Returns true if prefix is the prefix of s, false otherwise.

sdyna
sfind
ssuffix
scontains
sfirst_index_of
slast_index_of