source:
EcnlProtoTool/trunk/musl-1.1.18/src/string/strcmp.c@
445
Last change on this file since 445 was 444, checked in by , 4 years ago | |
---|---|
|
|
File size: 150 bytes |
Rev | Line | |
---|---|---|
[444] | 1 | #include <string.h> |
2 | ||
3 | int strcmp(const char *l, const char *r) | |
4 | { | |
5 | for (; *l==*r && *l; l++, r++); | |
6 | return *(unsigned char *)l - *(unsigned char *)r; | |
7 | } |
Note:
See TracBrowser
for help on using the repository browser.