Add prototype for strnlen to prevent warnings.

This commit is contained in:
Darren Tucker 2019-07-06 13:13:57 +10:00
parent 4c3e00b1ed
commit b8e2b79736
1 changed files with 4 additions and 0 deletions

View File

@ -109,6 +109,10 @@ size_t strlcat(char *dst, const char *src, size_t siz);
char *strcasestr(const char *, const char *);
#endif
#ifndef HAVE_STRNLEN
size_t strnlen(const char *, size_t);
#endif
#ifndef HAVE_STRNDUP
char *strndup(const char *s, size_t n);
#endif