STRCSPN(3) Library Functions Manual STRCSPN(3)
NAME
strcspn — get
length of a complementary substring
SYNOPSIS
#include <string.h> size_t strcspn(const char *s1, const 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 bytes not from the string pointed to by s2 .
RETURN VALUE
The strcspn() function returns the length of the computed segment of the string pointed to by s1 ; no return value is reserved to indicate an error.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
strspn(3) , <string.h> .
DERIVATION
Derived from Issue 1 of the SVID.
February 1997 posix.fail