conditionally build strnlen if needed.

it is only used by strndup

prodded by Sortie@
This commit is contained in:
Brent Cook
2014-08-02 21:43:56 -05:00
parent c95574be92
commit 00b51d5c25
3 changed files with 9 additions and 0 deletions

View File

@@ -22,8 +22,10 @@ size_t strlcat(char *dst, const char *src, size_t siz);
#ifdef NO_STRNDUP
char * strndup(const char *str, size_t maxlen);
#ifdef NO_STRNLEN
size_t strnlen(const char *str, size_t maxlen);
#endif
#endif
#ifdef NO_EXPLICIT_BZERO
void explicit_bzero(void *, size_t);