|
||
size_t strcspn( char *s1, char *s2 )
char *s1; /* a string */ char *s2; /* string containing character set */
|
|
|
Synopsis |
#include "string.h"
The strcspn function determines of the prefix of string s1 that contains none of the characters in string s2 .
|
|
Parameters |
s1 and s2 are null-terminated strings.
|
|
Return Value |
strcspn returns the length of the prefix determined above.
|
|
See Also |
|
|
|
|