diff options
Diffstat (limited to 'system/lib')
-rw-r--r-- | system/lib/libc/musl/src/string/strpbrk.c | 7 | ||||
-rw-r--r-- | system/lib/libcextra.symbols | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/string/strpbrk.c b/system/lib/libc/musl/src/string/strpbrk.c new file mode 100644 index 00000000..55947c64 --- /dev/null +++ b/system/lib/libc/musl/src/string/strpbrk.c @@ -0,0 +1,7 @@ +#include <string.h> + +char *strpbrk(const char *s, const char *b) +{ + s += strcspn(s, b); + return *s ? (char *)s : 0; +} diff --git a/system/lib/libcextra.symbols b/system/lib/libcextra.symbols index 06e68c92..7846f153 100644 --- a/system/lib/libcextra.symbols +++ b/system/lib/libcextra.symbols @@ -126,6 +126,7 @@ T strncat T strndup T strnlen + T strpbrk T strrchr T strsep T strspn |