OSDN Git Service

[libc] Add strncpy implementation.
authorCheng Wang <chennngwang@gmail.com>
Thu, 12 Nov 2020 03:42:04 +0000 (11:42 +0800)
committerCheng Wang <chennngwang@gmail.com>
Wed, 2 Dec 2020 12:45:51 +0000 (20:45 +0800)
commit60cef893627be169f22dc540834c4d085847d94a
tree2f9a83d088225383e06444895ac7c084a4b6c477
parentd055e3a0eb4e957159b075c0937a960beb75c975
[libc] Add strncpy implementation.

Add libc strncpy implementation.

Reviewed By: sivachandra, gchatelet

Differential Revision: https://reviews.llvm.org/D91399
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/x86_64/entrypoints.txt
libc/src/string/CMakeLists.txt
libc/src/string/strncpy.cpp [new file with mode: 0644]
libc/src/string/strncpy.h [new file with mode: 0644]
libc/test/src/string/CMakeLists.txt
libc/test/src/string/strncpy_test.cpp [new file with mode: 0644]