diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/Makefile | 6 | ||||
-rw-r--r-- | string/string.h | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/string/Makefile b/string/Makefile index 6704dbf4e0..b924dfc87d 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 4a79dcecc2..24beb6caa2 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. */ |