low_str_strcspn Find a substring in a string.
l_size_t low_str_strcspn ( cl_text s1, cl_text set );
Return Value
Returns an integer value specifying the length of the initial segment of string @s1 that consists entirely of characters not in @set. If string begins with a character that is in @set, the function returns 0. No return value is reserved to indicate an error.
Parameters
s1
Null-terminated searched string
set
Null-terminated character set
Remarks
The low_str_strcspn function returns the index of the first occurrence of a character in string that belongs to the set of characters in @set. Terminating null characters are included in the search.