diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2008-12-08 21:04:24 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2008-12-08 21:04:24 +0000 |
commit | 20e76cb365d07190cd56936e59bf95e3eb32b9ca (patch) | |
tree | d222119fdf25f6e509a03e165fe282bb307b8a27 /include/string.h | |
parent | a6d94c502cfa934ed43a042d52ae6019b3c0244d (diff) | |
download | src-20e76cb365d07190cd56936e59bf95e3eb32b9ca.tar.gz src-20e76cb365d07190cd56936e59bf95e3eb32b9ca.zip |
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
Notes
Notes:
svn path=/head/; revision=185777
Diffstat (limited to 'include/string.h')
-rw-r--r-- | include/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h index 1b6e1849de43..32a9ad3e5608 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; |