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/strlen.c | |
parent | 636858dbbd48ed9f5073793b46740302aa202f43 (diff) |
Meta: Apply new clang-format rules to kernel
Diffstat (limited to 'kernel/libc/string/strlen.c')
-rw-r--r-- | kernel/libc/string/strlen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/libc/string/strlen.c b/kernel/libc/string/strlen.c index 4346383..a4a096a 100644 --- a/kernel/libc/string/strlen.c +++ b/kernel/libc/string/strlen.c @@ -1,8 +1,8 @@ #include "../include/string.h" -unsigned long strlen(const char *s) -{ - const char * tmp = s; - for(;*tmp++;); - return (tmp - s)-1; +unsigned long strlen(const char *s) { + const char *tmp = s; + for (; *tmp++;) + ; + return (tmp - s) - 1; } |