summaryrefslogtreecommitdiff
path: root/libc/src/string/strndup.cpp
AgeCommit message (Collapse)Author
2024-07-12[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)Petr Hosek
This is a part of #97655.
2024-07-12Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace ↵Mehdi Amini
declaration" (#98593) Reverts llvm/llvm-project#98075 bots are broken
2024-07-11[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)Petr Hosek
This is a part of #97655.
2023-09-26[libc] Mass replace enclosing namespace (#67032)Guillaume Chatelet
This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
2023-07-19[libc][NFC] Rename filesGuillaume Chatelet
This patch mostly renames files so it better reflects the function they declare. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D155607
2022-12-21[libc][Obvious] Fix an off-by-one error introduced by ↵Siva Chandra Reddy
eb9cc253cb048b6dbf2fcd73ac55b5eda0184ed3.
2022-12-21[libc][NFC] Use the custom operator new from strndup.Siva Chandra Reddy
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D140461
2021-11-30[libc][clang-tidy] fix namespace check for externalsMichael Jones
Up until now, all references to `errno` were marked with `NOLINT`, since it was technically calling an external function. This fixes the lint rules so that `errno`, as well as `malloc`, `calloc`, `realloc`, and `free` are all allowed to be called as external functions. All of the relevant `NOLINT` comments have been removed, and the documentation has been updated. Reviewed By: sivachandra, lntue, aaron.ballman Differential Revision: https://reviews.llvm.org/D113946
2021-11-26[libc] Make string entrypoints mutualy exclusive.Siva Chandra Reddy
For example, strcpy does not pull memcpy now. Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D114300
2021-11-01[libc] add strndupMichael Jones
add an implementation of strndup Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D112846