Reverted latest changes.
[reactos.git] / reactos / lib / msvcrt / string / strcmp.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/string.h>
3
4 int strcmp(const char *s1, const char *s2)
5 {
6 while (*s1 == *s2)
7 {
8 if (*s1 == 0)
9 return 0;
10 s1++;
11 s2++;
12 }
13 return *(unsigned const char *)s1 - *(unsigned const char *)(s2);
14 }