diff options
Diffstat (limited to 'src/lib/libc/include')
-rw-r--r-- | src/lib/libc/include/string.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/libc/include/string.h b/src/lib/libc/include/string.h index 83bb551..58a7caa 100644 --- a/src/lib/libc/include/string.h +++ b/src/lib/libc/include/string.h @@ -39,4 +39,13 @@ */ size_t strlen(const char *s); +/* + * Get the length of a string with a maximum + * length + * + * @s: String to check length of + * @maxlen: Max length of string to check + */ +size_t strnlen(const char *s, size_t maxlen); + #endif /* _STRING_H */ |