Name

strcspn — Calculate the length of the initial substring of s which does not contain letters in reject

Synopsis

size_t strcspn (const char *  s,
 const char *  reject);

Arguments

s

The string to be searched

reject

The string to avoid