diff options
Diffstat (limited to 'include/kernel')
-rw-r--r-- | include/kernel/string.h | 12 | ||||
-rw-r--r-- | include/kernel/tty.h | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/include/kernel/string.h b/include/kernel/string.h new file mode 100644 index 0000000..8761211 --- /dev/null +++ b/include/kernel/string.h @@ -0,0 +1,12 @@ +#ifndef STRING_H +#define STRING_H + +#include <stddef.h> + +int memcmp(const void *str1, const void *str2, size_t n); +void* memcpy(void* __restrict dest, const void* __restrict src, size_t n); +void* memmove(void* __restrict dest, const void* __restrict src, size_t n); +void* memset(void *str, int c, size_t n); +size_t strlen(const char *str); + +#endif diff --git a/include/kernel/tty.h b/include/kernel/tty.h new file mode 100644 index 0000000..194b7c7 --- /dev/null +++ b/include/kernel/tty.h @@ -0,0 +1,11 @@ +#ifndef KERNEL_TTY +#define KERNEL_TTY + +#include <stddef.h> + +void tty_init(void); +void tty_putchar(char c); +void tty_write(const char *data, size_t size); +void tty_writestring(const char *data); + +#endif |