summaryrefslogtreecommitdiff
path: root/libc/src/string/strncmp.cpp
AgeCommit message (Collapse)Author
2025-06-04[libc] Expand usage of libc null checks. (#116262)Aly ElAshram
Fixes #111546 --------- Co-authored-by: alyyelashram <150528548+alyyelashram@users.noreply.github.com>
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
2023-01-10Reland: "[libc] Templatize str{,n}cmp"Alex Brachet
This will be used to implement the case insensitive str{,n}casecmp This was initially reverted because it broke tests on arm platforms. Unfortunately, it didn't break on my arm machine, but I suspect the problem was the old comparator returned char and not int. Differential Revision: https://reviews.llvm.org/D141235
2023-01-09Revert "[libc] Templatize str{,n}cmp"Alex Brachet
This reverts commit c6dcbed2e5327f0c11962bdbbcd02f1b5c570fea. Broke tests on arm and aarch64
2023-01-09[libc] Templatize str{,n}cmpAlex Brachet
This will be used to implement the case insensitive str{,n}casecmp Differential Revision: https://reviews.llvm.org/D141235
2021-07-28[libc] add strncmp to stringsMichael Jones
Add strncmp as a function to strings.h. Also adds unit tests, and adds strncmp as an entrypoint for all current platforms. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D106901