From a0127ce253afb16ffa14431442beab401d8e4957 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 7 May 1999 23:55:21 +0000 Subject: [PATCH] (strndup): add (strnlen): update prototype git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6149 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/roken.h.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 421e537dd..3caafa4aa 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -179,12 +179,16 @@ int vasnprintf (char **ret, size_t max_sz, const char *format, va_list ap) char * strdup(const char *old); #endif +#ifndef HAVE_STRNDUP +char * strndup(const char *old, size_t sz); +#endif + #ifndef HAVE_STRLWR char * strlwr(char *); #endif #ifndef HAVE_STRNLEN -int strnlen(char*, int); +size_t strnlen(const char*, size_t); #endif #if !defined(HAVE_STRSEP) || defined(NEED_STRSEP_PROTO)