aboutsummaryrefslogtreecommitdiff
path: root/src/mlibc/string/strcmp.c
diff options
context:
space:
mode:
authorMarvin Borner2019-11-24 23:34:32 +0100
committerMarvin Borner2019-11-24 23:34:32 +0100
commitbb57b124d1bb385d41747f50be7dd4f3625539c1 (patch)
treefe461afad63df40571784565e8d435cba8c8e59c /src/mlibc/string/strcmp.c
parentf9c50b9ff23e9a3e8db5826fef7a6e7ebb8af21d (diff)
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
Diffstat (limited to 'src/mlibc/string/strcmp.c')
-rw-r--r--src/mlibc/string/strcmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mlibc/string/strcmp.c b/src/mlibc/string/strcmp.c
index cc719da..be6c17a 100644
--- a/src/mlibc/string/strcmp.c
+++ b/src/mlibc/string/strcmp.c
@@ -1,6 +1,7 @@
#include <mlibc/string.h>
-char strcmp(const char *a, const char *b) {
+char strcmp(const char *a, const char *b)
+{
if (strlen(a) != strlen(b)) return 1;
for (size_t i = 0; i < strlen(a); i++) if (a[i] != b[i]) return 1;