diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-07-02 21:38:54 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-07-02 21:38:54 -0400 |
commit | 7424ac58b1f47adb03de55de5998c530aee91551 (patch) | |
tree | 4ea62b1dddc54fe2c901049c1914483c6265e6a0 /src/string/strcasecmp.c | |
parent | d89fdec51b5849ebdf8000ff1c2fb49878004f39 (diff) | |
download | musl-7424ac58b1f47adb03de55de5998c530aee91551.tar.gz musl-7424ac58b1f47adb03de55de5998c530aee91551.tar.bz2 musl-7424ac58b1f47adb03de55de5998c530aee91551.tar.xz musl-7424ac58b1f47adb03de55de5998c530aee91551.zip |
consolidate str[n]casecmp_l into str[n]casecmp source files
this is mainly done for consistency with the ctype functions and to
declutter the src/locale directory.
Diffstat (limited to 'src/string/strcasecmp.c')
-rw-r--r-- | src/string/strcasecmp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/string/strcasecmp.c b/src/string/strcasecmp.c index 02fd5f8c..3cd5f2d0 100644 --- a/src/string/strcasecmp.c +++ b/src/string/strcasecmp.c @@ -1,5 +1,6 @@ #include <strings.h> #include <ctype.h> +#include "libc.h" int strcasecmp(const char *_l, const char *_r) { @@ -7,3 +8,10 @@ int strcasecmp(const char *_l, const char *_r) for (; *l && *r && (*l == *r || tolower(*l) == tolower(*r)); l++, r++); return tolower(*l) - tolower(*r); } + +int __strcasecmp_l(const char *l, const char *r, locale_t loc) +{ + return strcasecmp(l, r); +} + +weak_alias(__strcasecmp_l, strcasecmp_l); |