[libc-commits] [PATCH] D85386: [libc] Add strpbrk implementation.
Fangrui Song via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Aug 5 21:36:40 PDT 2020
MaskRay added inline comments.
================
Comment at: libc/src/string/strpbrk.cpp:16
-size_t LLVM_LIBC_ENTRYPOINT(strspn)(const char *src, const char *segment) {
- const char *initial = src;
+char *LLVM_LIBC_ENTRYPOINT(strpbrk)(const char *src, const char *breakset) {
cpp::Bitset<256> bitset;
----------------
You can implement strpbrk on top of strcspn
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85386/new/
https://reviews.llvm.org/D85386
More information about the libc-commits
mailing list