* Find the first occurrence in @p s of any character in @p accept. * * Derived from glibc **/
| 92 | * Derived from glibc |
| 93 | **/ |
| 94 | char *strpbrk(const char *s, const char *accept) |
| 95 | { |
| 96 | while (*s != '\0') { |
| 97 | const char *a = accept; |
| 98 | while (*a != '\0') { |
| 99 | if (*a++ == *s) return (char *)s; |
| 100 | } |
| 101 | ++s; |
| 102 | } |
| 103 | |
| 104 | return NULL; |
| 105 | } |
| 106 | #endif |
| 107 | |
| 108 |
no outgoing calls
no test coverage detected