From 0ff301cda68669c59351e5854ce98f2cf460543f Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 27 Mar 2025 11:39:12 -0400 Subject: pull upstream changes, add auto formatting --- lib/strcmp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/strcmp.c') 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 -- cgit v1.2.3-freya