git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3f8c76e829b43a6a0a92cf70194438e147a4f5be
[reactos.git]
/
lib
/
crtdll
/
string
/
strcmp.c
1
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2
#include <crtdll/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
}