source: asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/string/strcasecmp.c@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向け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
5int 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
12int __strcasecmp_l(const char *l, const char *r, locale_t loc)
13{
14 return strcasecmp(l, r);
15}
16
17weak_alias(__strcasecmp_l, strcasecmp_l);
Note: See TracBrowser for help on using the repository browser.