aboutsummaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/Makefile6
-rw-r--r--string/string.h10
2 files changed, 13 insertions, 3 deletions
diff --git a/string/Makefile b/string/Makefile
index 6704dbf..b924dfc 100644
--- a/string/Makefile
+++ b/string/Makefile
@@ -24,14 +24,14 @@ subdir := string
headers := string.h strings.h memory.h endian.h bytesex.h \
argz.h envz.h
-routines := strcat strchr strcmp strcoll strcpy strcspn strverscmp \
- strdup strndup \
+routines := strcat strchr strcmp strcoll strcpy strcspn \
+ strverscmp strdup strndup \
strerror _strerror strerror_r strlen strnlen \
strncat strncmp strncpy \
strrchr strpbrk strsignal strspn strstr strtok \
strtok_r strxfrm memchr memcmp memmove memset \
bcopy bzero ffs stpcpy stpncpy \
- strcasecmp strncase \
+ strcasecmp strncase strcasecmp_l strncase_l \
memccpy memcpy wordcopy strsep \
swab strfry memfrob memmem \
$(addprefix argz-,append count create ctsep next \
diff --git a/string/string.h b/string/string.h
index 4a79dce..24beb6c 100644
--- a/string/string.h
+++ b/string/string.h
@@ -233,6 +233,16 @@ extern int strncasecmp __P ((__const char *__s1, __const char *__s2,
size_t __n));
#endif /* Use BSD or X/Open Unix. */
+#ifdef __USE_GNU
+/* Again versions of a few functions which use the given locale instead
+ of the global one. */
+extern int __strcasecmp_l __P ((__const char *__s1, __const char *__s2,
+ __locale_t __loc));
+
+extern int __strncasecmp_l __P ((__const char *__s1, __const char *__s2,
+ size_t __n, __locale_t __loc));
+#endif
+
#ifdef __USE_BSD
/* Return the next DELIM-delimited token from *STRINGP,
terminating it with a '\0', and update *STRINGP to point past it. */