[libc-commits] [PATCH] D106901: [libc] add strncmp to strings

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Jul 27 11:33:57 PDT 2021


michaelrj created this revision.
michaelrj added a reviewer: sivachandra.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added a project: libc-project.
michaelrj requested review of this revision.

Add strncmp as a function to strings.h. Also adds unit tests, and adds
strncmp as an entrypoint for all current platforms.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106901

Files:
  libc/config/linux/aarch64/entrypoints.txt
  libc/config/linux/x86_64/entrypoints.txt
  libc/config/windows/entrypoints.txt
  libc/src/string/CMakeLists.txt
  libc/src/string/strncmp.cpp
  libc/src/string/strncmp.h
  libc/test/src/string/CMakeLists.txt
  libc/test/src/string/strncmp_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106901.362115.patch
Type: text/x-patch
Size: 8848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210727/3a3d83de/attachment.bin>


More information about the libc-commits mailing list