scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit d55ef47946e20f9acb7601cb3c05247056c802e4
parent 3f16edee3f63d37bcd7f41aec82daec377faf09f
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Fri, 21 Mar 2025 11:41:53 +0100

libc/string: Simplify strcmp

Diffstat:
Msrc/libc/string/strcmp.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libc/string/strcmp.c b/src/libc/string/strcmp.c @@ -5,7 +5,7 @@ int strcmp(const char *s1, const char *s2) { - while (*s1 && *s2 && *s1 == *s2) + while (*s1 && *s1 == *s2) ++s1, ++s2; return *(unsigned char *) s1 - *(unsigned char *) s2; }