123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #include <string.h>
- char *
- __strpbrk(const char *s1, const char *s2)
- {
- const char *scanp;
- int c, sc;
- while ((c = *s1++) != 0) {
- for (scanp = s2; (sc = *scanp++) != 0;)
- if (sc == c)
- return ((char *)(s1 - 1));
- }
- return (NULL);
- }
- #ifdef _TLIBC_USE_INTEL_FAST_STRING_
- extern char *_intel_fast_strpbrk(const char *, const char *);
- #endif
- char *
- strpbrk(const char *s1, const char *s2)
- {
- #ifdef _TLIBC_USE_INTEL_FAST_STRING_
- return _intel_fast_strpbrk(s1, s2);
- #else
- return __strpbrk(s1, s2);
- #endif
- }
|