From b2cf27bb1d8239a7ccc55c29df996370c8f1bed6 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 26 Oct 2019 18:57:34 +0200 Subject: Added terminal tty features --- src/kernel/lib/string.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/kernel/lib') 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; } -- cgit v1.2.3