Last change
on this file since 351 was 337, checked in by coas-nagasima, 6 years ago |
ASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
406 bytes
|
Line | |
---|
1 | #include <strings.h>
|
---|
2 | #include <ctype.h>
|
---|
3 | #include "libc.h"
|
---|
4 |
|
---|
5 | int strcasecmp(const char *_l, const char *_r)
|
---|
6 | {
|
---|
7 | const unsigned char *l=(void *)_l, *r=(void *)_r;
|
---|
8 | for (; *l && *r && (*l == *r || tolower(*l) == tolower(*r)); l++, r++);
|
---|
9 | return tolower(*l) - tolower(*r);
|
---|
10 | }
|
---|
11 |
|
---|
12 | int __strcasecmp_l(const char *l, const char *r, locale_t loc)
|
---|
13 | {
|
---|
14 | return strcasecmp(l, r);
|
---|
15 | }
|
---|
16 |
|
---|
17 | weak_alias(__strcasecmp_l, strcasecmp_l);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.