[libc-commits] [PATCH] D111913: [libc] add stpcpy and stpncpy

Tue Ly via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Nov 3 07:09:26 PDT 2021


lntue accepted this revision.
lntue added inline comments.


================
Comment at: libc/src/string/stpncpy.cpp:24
+  }
+  size_t end = i;
+  // When n>strlen(src), n-strlen(src) \0 are appended.
----------------
Do you still need both `i` and `end`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111913



More information about the libc-commits mailing list