summaryrefslogtreecommitdiff
path: root/kernel/libc/string/strlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/libc/string/strlen.c')
-rw-r--r--kernel/libc/string/strlen.c10
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;
}