#include <string.h>
int strcspn (
char *src, /* source string */
char *set); /* characters to find */
Description
The strcspn function searches the src
string for any of the characters in the set
string.
Return Value
The strcspn function returns the index of the first
character located in src that matches a character
in set. If the first character in src matches a character in set, a value
of 0 is returned. If there are no matching characters in src, the length of the src is
returned.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.