Skip to content

cf_string_first_index_of

Category: string
GitHub: cute_string.h


Returns the index of the first occurrence of ch in the string.

#define cf_string_first_index_of(s, ch) sfirst_index_of(s, ch)
Parameters Description
s The string.
ch The character to search for.

Return Value

Returns the index, or -1 if not found.

Remarks

Shortform: sfirst_index_of(s, ch).

cf_string_last_index_of
cf_string_find
cf_string_contains