repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
sys/stat.h: fix typo in statx member name stx_dio_offset_align
[musl.git]
/
src
/
string
/
strcmp.c
blob
808bd8370ddeca3a2cfc124601cbd6012be89f80
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
}