welibc
A clear, secure, and well documented standard C library
|
Defines the strspn function. More...
#include <string.h>
Go to the source code of this file.
Functions | |
size_t | strspn (const char *s1, const char *s2) |
Find the length of the span of characters in s2 in s1. More... | |
Defines the strspn function.
Definition in file strspn.c.
size_t strspn | ( | const char * | s1, |
const char * | s2 | ||
) |
Find the length of the span of characters in s2 in s1.
*s1 | String being searched |
*s2 | String of characters in the span being found |
The strspn function computes the length of the maximum initial segment of the string pointed to by s1 which consists entirely of characters from the string pointed to by s2.
Definition at line 52 of file strspn.c.
References strchr().
Referenced by strtok().