(strndup): add

(strnlen): update prototype


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6149 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-05-07 23:55:21 +00:00
parent a1986ed895
commit a0127ce253

View File

@@ -179,12 +179,16 @@ int vasnprintf (char **ret, size_t max_sz, const char *format, va_list ap)
char * strdup(const char *old); char * strdup(const char *old);
#endif #endif
#ifndef HAVE_STRNDUP
char * strndup(const char *old, size_t sz);
#endif
#ifndef HAVE_STRLWR #ifndef HAVE_STRLWR
char * strlwr(char *); char * strlwr(char *);
#endif #endif
#ifndef HAVE_STRNLEN #ifndef HAVE_STRNLEN
int strnlen(char*, int); size_t strnlen(const char*, size_t);
#endif #endif
#if !defined(HAVE_STRSEP) || defined(NEED_STRSEP_PROTO) #if !defined(HAVE_STRSEP) || defined(NEED_STRSEP_PROTO)