ref: 4dd43534558d8e24534d263a3bc1ca748052af9a
dir: /lib/c/strpbrk.c/
#include <string.h>
#undef strpbrk
char *
strpbrk(const char *s1, const char *s2)
{
char buf[__NUMCHARS];
unsigned ch;
memset(buf, 0, sizeof(buf));
while (ch = *s2++)
buf[ch] = 1;
while ((ch = *s1) && !buf[ch])
s1++;
return (ch == '\0') ? NULL : (char *) s1;
}