diff options
| author | cpplover0 <osdev555@yandex.com> | 2026-03-01 08:06:37 +0300 |
|---|---|---|
| committer | cpplover0 <osdev555@yandex.com> | 2026-03-01 08:06:37 +0300 |
| commit | 564e9b23d5647b16f43dea3f9eaf2008330e70f9 (patch) | |
| tree | 99e2f283bf4ac59db7456d3a234a48000b065dc2 /kernel/src/klibc/stdlib.cpp | |
| parent | 9f0c014b08f33f44eb7134969c0e7ed509e3adfc (diff) | |
orange rewrite
Diffstat (limited to 'kernel/src/klibc/stdlib.cpp')
| -rw-r--r-- | kernel/src/klibc/stdlib.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/src/klibc/stdlib.cpp b/kernel/src/klibc/stdlib.cpp new file mode 100644 index 0000000..ab6e06e --- /dev/null +++ b/kernel/src/klibc/stdlib.cpp @@ -0,0 +1,14 @@ +#include <generic/heap.hpp> +#include <cstdint> + +namespace klibc { + + void* malloc(std::size_t size) { + return kheap::malloc(size); + } + + void free(void* ptr) { + kheap::free(ptr); + } + +};
\ No newline at end of file |
