strpbrk.c - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
strpbrk.c (156B)
---
1 #include <string.h>
2
3 #undef strpbrk
4
5 char *
6 strpbrk(const char *s1, const char *s2)
7 {
8 s1 += strcspn(s1, s2);
9 return (*s1 != '\0') ? (char *) s1 : NULL;
10 }