123456789101112131415161718192021222324252627282930313233343536 |
- #include <string.h>
- size_t strcspn (const char *s, const char *reject)
- {
- size_t count = 0;
- while (*s != '\0')
- if (strchr (reject, *s++) == NULL)
- ++count;
- else
- return count;
- return count;
- }
- libc_hidden_def(strcspn)
|