diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2024-12-29 08:19:22 -0500 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-12-29 08:19:22 -0500 |
commit | 6ff999410fbdac9a63fb82c5709c9fe7c8753cef (patch) | |
tree | c1b939a359e1c0a3c2ae6e3ae97ae27bc4cbd516 /kernel/libk/strlen.c | |
parent | 94afd02a6a2744783e0979755eb0dcc40878f1e0 (diff) |
drivers: vga_text_buffer: introduce wip driver that doesn't work yet
For some reason, calling terminal_write_char('c'); within
terminal_initialize works, but calling it elsewhere refuses
to work.
Diffstat (limited to '')
-rw-r--r-- | kernel/libk/strlen.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/libk/strlen.c b/kernel/libk/strlen.c new file mode 100644 index 0000000..6a37756 --- /dev/null +++ b/kernel/libk/strlen.c @@ -0,0 +1,13 @@ +#include <stddef.h> + +#include <libk/string.h> + +size_t +strlen(const char* str) +{ + size_t len = 0; + while (str[len]) + len++; + + return len; +} |