[libc-commits] [PATCH] D77279: [libc] Add strlen implementation.

Paula Toth via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Apr 3 14:06:03 PDT 2020


PaulkaToast added inline comments.


================
Comment at: libc/src/string/strlen.cpp:18
+  while (*end != '\0')
+    end++;
+  return end - src;
----------------
MaskRay wrote:
> https://llvm.org/docs/CodingStandards.html#prefer-preincrement
This is great suggestion thank you! (:


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77279/new/

https://reviews.llvm.org/D77279





More information about the libc-commits mailing list