diff options
author | Marvin Borner | 2019-10-26 18:57:34 +0200 |
---|---|---|
committer | Marvin Borner | 2019-10-26 18:57:34 +0200 |
commit | b2cf27bb1d8239a7ccc55c29df996370c8f1bed6 (patch) | |
tree | ffc8fa4dfd4800cbb14f740d32c848cfc00d9866 /src/kernel/lib/string.c | |
parent | 5668d7cfc5bb05057c5368eceb2bbb8a6a45a8c3 (diff) |
Added terminal tty features
Diffstat (limited to 'src/kernel/lib/string.c')
-rw-r--r-- | src/kernel/lib/string.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/lib/string.c b/src/kernel/lib/string.c index 11e6021..f9dfb99 100644 --- a/src/kernel/lib/string.c +++ b/src/kernel/lib/string.c @@ -9,7 +9,9 @@ size_t strlen(const char *str) { size_t strcmp(const char *s1, const char *s2) { size_t s_a = strlen(s1); - for (size_t i = 0; i < s_a; i++) if (s1[i] != s2[i]) return 1; + for (size_t i = 0; i < s_a; i++) + if (s1[i] != s2[i]) + return 1; return 0; } |