1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

add strnlen()

This commit is contained in:
Henning Nielsen Lund
2017-08-01 21:28:07 +02:00
parent 309bbd8c8c
commit c76bf8e20b
3 changed files with 77 additions and 0 deletions

View File

@ -62,6 +62,7 @@ extern int strcmp(const char *s1, const char * s2);
extern int strncmp(const char *s1, const char *s2, size_t n);
extern char *strcpy(char *dest, const char *src);
extern char *strncpy(char *dest, const char *src, size_t n);
extern size_t strnlen(const char *s, size_t maxlen);
extern size_t strlen(const char *s);
extern char *strchr(const char *s, int c);
extern char *strrchr(const char *s, int c);