STRCSPN(3) NEWLIB STRCSPN(3)NAME
6.23 `strcspn'--count characters not in string
SYNOPSIS
size_t strcspn(const char *S1, const char *S2);
DESCRIPTION
This function computes the length of the initial part of the string
pointed to by S1 which consists entirely of characters NOT from the
string pointed to by S2 (excluding the terminating null character).
RETURNS
`strcspn' returns the length of the substring found.
PORTABILITY
`strcspn' is ANSI C.
`strcspn' requires no supporting OS subroutines.
SEE ALSOstrcspn is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 STRCSPN(3)