Root/
1 | /*␊ |
2 | * strpbrk␊ |
3 | */␊ |
4 | ␊ |
5 | #include <string.h>␊ |
6 | ␊ |
7 | #include "strxspn.h"␊ |
8 | ␊ |
9 | char *strpbrk(const char *s, const char *accept)␊ |
10 | {␊ |
11 | ␉const char *ss = s + __strxspn(s, accept, 1);␊ |
12 | ␊ |
13 | ␉return *ss ? (char *)ss : NULL;␊ |
14 | }␊ |
15 |