From fb43ec963d44646af786181797f0c7fb28294608 Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 19 Mar 2007 08:01:40 +0000 Subject: * missing/{strlcat,strlcpy}.c, missing.h: new functions. * LEGAL: add copyright notice about above files. * configure.in: check whether strlcat and strlcpy are exist or not. * {bcc32,win32,wince}/Makefile.sub: use above files. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'missing.h') diff --git a/missing.h b/missing.h index db37e3ae4..81fdfecf7 100644 --- a/missing.h +++ b/missing.h @@ -137,4 +137,12 @@ extern int snprintf(char *, size_t n, char const *, ...); extern int vsnprintf(char *, size_t n, char const *, va_list); #endif +#ifndef HAVE_STRLCPY +extern size_t strlcpy(char *, const char*, size_t); +#endif + +#ifndef HAVE_STRLCAT +extern size_t strlcat(char *, const char*, size_t); +#endif + #endif /* MISSING_H */ -- cgit