diff options
Diffstat (limited to 'src/c/str/len/strlen.c')
-rw-r--r-- | src/c/str/len/strlen.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/c/str/len/strlen.c b/src/c/str/len/strlen.c new file mode 100644 index 0000000..b7a350d --- /dev/null +++ b/src/c/str/len/strlen.c @@ -0,0 +1,13 @@ +// Copyright 2022 Alejandro Colomar <alx@kernel.org> +// SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception + + +#include <c/str/len/strlen.h> + +#include <stddef.h> + + +#pragma clang assume_nonnull begin +extern inline size_t c_strlen(const char *s); +extern inline size_t c_strnlen(const char *s, size_t sz); +#pragma clang assume_nonnull end |