diff options
author | Anton Kling <anton@kling.gg> | 2023-11-28 20:11:05 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-28 20:12:20 +0100 |
commit | d07fa25e04a19ccb9aa25bb6e2156d23d213db77 (patch) | |
tree | 25f2e4a6301f3ad7c5b158e74966a394862fdf39 /kernel/libc/string/strcmp.c | |
parent | 636858dbbd48ed9f5073793b46740302aa202f43 (diff) |
Meta: Apply new clang-format rules to kernel
Diffstat (limited to 'kernel/libc/string/strcmp.c')
-rw-r--r-- | kernel/libc/string/strcmp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/libc/string/strcmp.c b/kernel/libc/string/strcmp.c index d7039e2..c1b1432 100644 --- a/kernel/libc/string/strcmp.c +++ b/kernel/libc/string/strcmp.c @@ -1,8 +1,7 @@ #include "../include/string.h" -int strcmp(const char *s1, const char *s2) -{ - for(;*s1 == *s2 && *s1; s1++, s2++) - ; - return *s1 - *s2; +int strcmp(const char *s1, const char *s2) { + for (; *s1 == *s2 && *s1; s1++, s2++) + ; + return *s1 - *s2; } |