From 0a74a4d4648f8655ad4862f28d995fcf2865b3b2 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 27 Jul 2014 06:11:56 -0500 Subject: add strndup/strnlen compat functions from OpenBSD --- include/string.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/string.h b/include/string.h index 6277247..cd3430a 100644 --- a/include/string.h +++ b/include/string.h @@ -16,6 +16,10 @@ size_t strlcpy(char *dst, const char *src, size_t siz); size_t strlcat(char *dst, const char *src, size_t siz); +char * strndup(const char *str, size_t maxlen); + +size_t strnlen(const char *str, size_t maxlen); + void explicit_bzero(void *, size_t); int timingsafe_bcmp(const void *b1, const void *b2, size_t n); -- cgit v1.2.3-55-g6feb