The strcspn function

Name

strcspn -- 

Synopsis

#include <string.h>

size_t strcspn (char *s1, char *s2);

Description

The strcspn function computes the length of the maximum initial segment of the string pointed to by s1 which consists entirely of characters not from the string pointed to by s2.

Returns

The strcspn function returns the length of the segment.

See Also

The strspn function

Implementation Notes

None