summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2002-09-19 17:30:05 +0000
committerManuel Novoa III <mjn3@codepoet.org>2002-09-19 17:30:05 +0000
commit309ce1f19f774f592d790e89de900dd81300c90b (patch)
tree9032c728cb6d98dd9f3490b748cf1bab5857e475 /include/string.h
parentdd3c72e1fabd08b2f03ab6a4f008609f62769373 (diff)
Hide my personal #warning reminders. Add __wcschrnul, rename strchrnul
to __strchrnul, and add weak aliases for them.
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/string.h b/include/string.h
index edcdf19fe..872cccab2 100644
--- a/include/string.h
+++ b/include/string.h
@@ -62,8 +62,7 @@ extern int memcmp (__const void *__s1, __const void *__s2, size_t __n)
extern void *memchr (__const void *__s, int __c, size_t __n)
__THROW __attribute_pure__;
-/*#ifdef __USE_GNU*/
-#if 0
+#ifdef __USE_GNU
/* Search in S for C. This is similar to `memchr' but there is no
length limit. */
extern void *rawmemchr (__const void *__s, int __c) __THROW __attribute_pure__;
@@ -158,8 +157,7 @@ extern char *strchr (__const char *__s, int __c) __THROW __attribute_pure__;
/* Find the last occurrence of C in S. */
extern char *strrchr (__const char *__s, int __c) __THROW __attribute_pure__;
-#if 0
-/*#ifdef __USE_GNU*/
+#ifdef __USE_GNU
/* This funciton is similar to `strchr'. But it returns a pointer to
the closing NUL byte in case C is not found in S. */
extern char *strchrnul (__const char *__s, int __c) __THROW __attribute_pure__;