scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | 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 }