[libc-commits] [PATCH] D83353: [libc] Add strchr implementation.
Paula Toth via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Jul 9 13:20:09 PDT 2020
PaulkaToast added inline comments.
================
Comment at: libc/src/string/strchr.cpp:23
+ for (; *str && *str != c; ++str)
+ ;
+ return *str == c ? str : nullptr;
----------------
nit: you could put `continue` here but not strictly necessary (:
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83353/new/
https://reviews.llvm.org/D83353
More information about the libc-commits
mailing list