diff options
Diffstat (limited to 'lib/strcmp.c')
-rw-r--r-- | lib/strcmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/strcmp.c b/lib/strcmp.c index c59f4f7..d829b95 100644 --- a/lib/strcmp.c +++ b/lib/strcmp.c @@ -21,12 +21,12 @@ ** ** @return negative if s1 < s2, zero if equal, and positive if s1 > s2 */ -int strcmp( register const char *s1, register const char *s2 ) { - - while( *s1 != 0 && (*s1 == *s2) ) +int strcmp(register const char *s1, register const char *s2) +{ + while (*s1 != 0 && (*s1 == *s2)) ++s1, ++s2; - return( *s1 - *s2 ); + return (*s1 - *s2); } #endif |