aboutsummaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/Makefile2
-rw-r--r--string/string.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/string/Makefile b/string/Makefile
index 1a1b269845..5b11a5885a 100644
--- a/string/Makefile
+++ b/string/Makefile
@@ -33,7 +33,7 @@ routines := strcat strchr strcmp strcoll strcpy strcspn \
strtok_r strxfrm memchr memcmp memmove memset \
mempcpy bcopy bzero ffs stpcpy stpncpy \
strcasecmp strncase strcasecmp_l strncase_l \
- memccpy memcpy wordcopy strsep \
+ memccpy memcpy wordcopy strsep strcasestr \
swab strfry memfrob memmem \
$(addprefix argz-,append count create ctsep next \
delete extract insert stringify \
diff --git a/string/string.h b/string/string.h
index e95d7cac96..8bf4a87098 100644
--- a/string/string.h
+++ b/string/string.h
@@ -154,6 +154,15 @@ extern size_t strspn __P ((__const char *__s, __const char *__accept));
extern char *strpbrk __P ((__const char *__s, __const char *__accept));
/* Find the first occurrence of NEEDLE in HAYSTACK. */
extern char *strstr __P ((__const char *__haystack, __const char *__needle));
+
+#ifdef __USE_GNU
+/* Similar to `strstr' but this function ignores the case of both strings. */
+extern char *__strcasestr __P ((__const char *__haystack,
+ __const char *__needle));
+extern char *strcasestr __P ((__const char *__haystack,
+ __const char *__needle));
+#endif
+
/* Divide S into tokens separated by characters in DELIM. */
extern char *strtok __P ((char *__restrict __s,
__const char *__restrict __delim));