diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-03-09 14:35:26 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2009-03-09 14:35:26 +0000 |
commit | 5c1d419918b3637170da9a5592049048aaf0ee49 (patch) | |
tree | 8ad672f8707275fdbeaf5b8a45eeb2bc8144623a /string/strings.h | |
parent | 48da74123eca38beeaec03d3d46ba09f069ef7dc (diff) |
Updated to fedora-glibc-20090309T1421cvs/fedora-glibc-2_9_90-9
Diffstat (limited to 'string/strings.h')
-rw-r--r-- | string/strings.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/string/strings.h b/string/strings.h index 0db756ae56..16ab6b1c4d 100644 --- a/string/strings.h +++ b/string/strings.h @@ -113,6 +113,23 @@ extern int strcasecmp (__const char *__s1, __const char *__s2) extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) __THROW __attribute_pure__; +#ifdef __USE_XOPEN2K8 +/* The following functions are equivalent to the both above but they + take the locale they use for the collation as an extra argument. + This is not standardsized but something like will come. */ +# include <xlocale.h> + +/* Again versions of a few functions which use the given locale instead + of the global one. */ +extern int strcasecmp_l (__const char *__s1, __const char *__s2, + __locale_t __loc) + __THROW __attribute_pure__ __nonnull ((1, 2, 3)); + +extern int strncasecmp_l (__const char *__s1, __const char *__s2, + size_t __n, __locale_t __loc) + __THROW __attribute_pure__ __nonnull ((1, 2, 4)); +#endif + __END_DECLS #endif /* string.h */ |