From 71396c5cd460890c52e348687e6e7c864e2dfeed Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Sun, 7 Aug 2022 16:39:28 +0200 Subject: types.h; libk and heap begining --- kernel/include/libk/math.h | 8 ++++++++ kernel/include/libk/string.h | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 kernel/include/libk/math.h create mode 100644 kernel/include/libk/string.h (limited to 'kernel/include/libk') diff --git a/kernel/include/libk/math.h b/kernel/include/libk/math.h new file mode 100644 index 0000000..83ac7fe --- /dev/null +++ b/kernel/include/libk/math.h @@ -0,0 +1,8 @@ +#ifndef MATH_H +#define MATH_H + +#include + +int64_t abs(int64_t val); + +#endif diff --git a/kernel/include/libk/string.h b/kernel/include/libk/string.h new file mode 100644 index 0000000..64a7f81 --- /dev/null +++ b/kernel/include/libk/string.h @@ -0,0 +1,11 @@ +#ifndef STRING_H +#define STRING_H + +#include + +size_t strlen(const char* s); +uint64_t stoi(const char *s); +void itos(uint64_t num, char* s); +void strrev(char *s); + +#endif -- cgit v1.2.3