9a0b8e7a357dbdcd9d457da9caf167e7ee5c7bba
[reactos.git] / reactos / 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 }