C versus C ++ find_first_not_of?

Is there a C function that can do the equivalent of find_first_not_of, getting the search string and character set, and returning the first character in the string and not in the set?

+3


source to share


1 answer


The function strspn

will take you most of the way. (You just need to massage the return value a little.)



+5


source







All Articles