add an implementation of strndup
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D112846
[libc] add strndup ClosedPublic Authored by michaelrj on Oct 29 2021, 1:58 PM.
Details
Summary add an implementation of strndup
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 29 2021, 2:59 PM Closed by commit rG3bbbec1ae7b7: [libc] add strndup (authored by michaelrj). · Explain WhyNov 1 2021, 12:53 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 383863 libc/config/linux/x86_64/entrypoints.txt
libc/spec/stdc.td
libc/src/string/CMakeLists.txt
libc/src/string/strndup.h
libc/src/string/strndup.cpp
libc/test/src/string/CMakeLists.txt
libc/test/src/string/strndup_test.cpp
|
We don't need braces to enclose single statement blocks.