projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial revision
[reactos.git]
/
reactos
/
lib
/
crtdll
/
string
/
strcmp.c
1
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2
#include <string.h>
3
4
int
5
strcmp
(
const char
*
s1
,
const char
*
s2
)
6
{
7
while
(*
s1
== *
s2
)
8
{
9
if
(*
s1
==
0
)
10
return
0
;
11
s1
++;
12
s2
++;
13
}
14
return
*(
unsigned const char
*)
s1
- *(
unsigned const char
*)(
s2
);
15
}