welibc
A clear, secure, and well documented standard C library
|
Defines the strcspn function. More...
#include <string.h>
Go to the source code of this file.
Functions | |
size_t | strcspn (const char *s1, const char *s2) |
Find the length of the span of complementary characters to s2 in s1. More... | |
Defines the strcspn function.
Definition in file strcspn.c.
size_t strcspn | ( | const char * | s1, |
const char * | s2 | ||
) |
Find the length of the span of complementary characters to s2 in s1.
*s1 | String being searched |
*s2 | String of characters not counted in the span being found |
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.
Definition at line 52 of file strcspn.c.
References strchr(), and strlen().
Referenced by strpbrk(), and strtok().