From bb57b124d1bb385d41747f50be7dd4f3625539c1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 24 Nov 2019 23:34:32 +0100 Subject: Major coding style reformatting -> Kernighan & Ritchie This project now (hopefully) uses the same style recommended by Kernighan and Ritchie and used in the Linux Kernel --- src/mlibc/string/strlen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mlibc/string/strlen.c') diff --git a/src/mlibc/string/strlen.c b/src/mlibc/string/strlen.c index 1143683..133ee3d 100644 --- a/src/mlibc/string/strlen.c +++ b/src/mlibc/string/strlen.c @@ -1,6 +1,7 @@ #include -size_t strlen(const char *str) { +size_t strlen(const char *str) +{ size_t len = 0; while (str[len]) len++; return len; -- cgit v1.2.3