Skip to content

cf_string_find

Category: string
GitHub: cute_string.h


Finds the first occurrence of a substring within the string.

#define cf_string_find(s, find) sfind(s, find)
Parameters Description
s The string to search in.
find The substring to search for.

Return Value

Returns a pointer to the first match, or NULL if not found.

Remarks

Shortform: sfind(s, find).

cf_string_contains
cf_string_first_index_of
cf_string_replace