From 2e6f1edb43215ac92a1504930980b99efb13ee7b Mon Sep 17 00:00:00 2001 From: kib Date: Mon, 8 Dec 2008 21:04:24 +0000 Subject: Add strndup(3) prototype to string.h. This change was erronously ommitted from the r185690, and attempt to simply add the prototype to string.h has revealed that several contributed programs defined local prototypes for strndup(), controlled by autoconfed config.h. So, manually change #undef HAVE_STRNDUP to #define HAVE_STRNDUP 1. Next import of the corresponding program would regenerate config.h, overriding the changes in this commit. No objections from: kan --- include/string.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/string.h b/include/string.h index 1b6e184..32a9ad3 100644 --- a/include/string.h +++ b/include/string.h @@ -96,6 +96,7 @@ char *strncat(char * __restrict, const char * __restrict, size_t); int strncmp(const char *, const char *, size_t) __pure; char *strncpy(char * __restrict, const char * __restrict, size_t); #if __BSD_VISIBLE +char *strndup(const char *, size_t); char *strnstr(const char *, const char *, size_t) __pure; #endif char *strpbrk(const char *, const char *) __pure; -- cgit v1.1