diff options
Diffstat (limited to 'src/mlibc/string/strcmp.c')
-rw-r--r-- | src/mlibc/string/strcmp.c | 3 |
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; |