git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
update for HEAD-2003021201
[reactos.git]
/
lib
/
crtdll
/
string
/
strcmp.c
1
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2
#include <msvcrt/string.h>
3
4
5
int 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
}