12 __strxspn(const char *s, const char *map, int parity)
14 char matchmap[UCHAR_MAX+1];
18 memset(matchmap, 0, sizeof matchmap);
20 matchmap[(unsigned char) *map++] = 1;
22 /* Make sure the null character never matches */
25 /* Calculate span length */
26 while ( matchmap[(unsigned char) *s++] ^ parity )