diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-05-04 00:56:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-05-04 00:56:16 +0000 |
commit | 160016c945d49cfe43f6d34aa077ea04309c983b (patch) | |
tree | ba021bf4a09d36d0669c84f7349ec5a4da4c80c5 /string/bits | |
parent | e7da8489b97e84cabd9ba9e0d682aef8d3bc5980 (diff) | |
download | glibc-160016c945d49cfe43f6d34aa077ea04309c983b.zip glibc-160016c945d49cfe43f6d34aa077ea04309c983b.tar.gz glibc-160016c945d49cfe43f6d34aa077ea04309c983b.tar.bz2 |
Update.
2000-05-03 Ulrich Drepper <drepper@redhat.com>
* string/bits/string2.h: Declare __strdup and __strndup if necessary.
Reported by Bruno Haible.
2000-04-29 Bruno Haible <haible@clisp.cons.org>
* manual/arith.texi: Remove @w from @itemize.
Diffstat (limited to 'string/bits')
-rw-r--r-- | string/bits/string2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/string/bits/string2.h b/string/bits/string2.h index b42987e..223c36e 100644 --- a/string/bits/string2.h +++ b/string/bits/string2.h @@ -1188,6 +1188,7 @@ __strsep_g (char **__s, __const char *__reject) # ifndef _HAVE_STRING_ARCH_strdup +extern char *__strdup (__const char *__string) __THROW __attribute_malloc__; # define __strdup(s) \ (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \ ? (((__const char *) (s))[0] == '\0' \ @@ -1206,6 +1207,8 @@ __strsep_g (char **__s, __const char *__reject) # ifndef _HAVE_STRING_ARCH_strndup +extern char *__strndup (__const char *__string, size_t __n) + __THROW __attribute_malloc__; # define __strndup(s, n) \ (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \ ? (((__const char *) (s))[0] == '\0' \ |