STRSPNSection: Linux Programmer's Manual (3)Updated: 1993-04-12 |
STRSPNSection: Linux Programmer's Manual (3)Updated: 1993-04-12 |
#include <string.h> size_t strspn(const char *s, const char *accept); size_t strcspn(const char *s, const char *reject);
The strcspn() function calculates the length of the initial segment of s which consists entirely of characters not in reject.
The strcspn() function returns the number of characters in the initial segment of s which are not in the string reject.