strcspn() String Function strcspn() Return length a string excludes characters in another #include <string.h> unsigned int strcspn(string1, string2); char *string1, *string2; strcspn compares string1 with string2. It then returns the length, in characters, for which string1 consists of characters not found in string2. ***** See Also ***** string functions, string.h COHERENT Lexicon Page 1