[libc-commits] [PATCH] D85386: [libc] Add strpbrk implementation.

Chris Gyurgyik via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Aug 6 06:04:52 PDT 2020


cgyurgyik 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;
----------------
MaskRay wrote:
> You can implement strpbrk on top of strcspn
Ack, let me tackle that.


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