[libc] Implements strnlen.
authorcgyurgyik <gyurgyikcp@gmail.com>
Wed, 22 Jul 2020 22:21:00 +0000 (18:21 -0400)
committercgyurgyik <gyurgyikcp@gmail.com>
Wed, 22 Jul 2020 22:28:35 +0000 (18:28 -0400)
commitf773d37ee1df1d5fd6b75ab83ddfa53dcb4bed84
tree2ab952fb3479e1c6cf00180b09b9afe05d3dd618
parent23c5e59d9feeb8e53c9c05a06801897233ec4453
[libc] Implements strnlen.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D84247
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/spec/posix.td
libc/src/string/CMakeLists.txt
libc/src/string/strnlen.cpp [new file with mode: 0644]
libc/src/string/strnlen.h [new file with mode: 0644]
libc/test/src/string/CMakeLists.txt
libc/test/src/string/strnlen_test.cpp [new file with mode: 0644]