diff options
| author | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-02 23:43:09 +0100 |
|---|---|---|
| committer | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-17 16:42:27 +0100 |
| commit | 62bf2eef72854750c7325d2e2c6e92562a522e16 (patch) | |
| tree | f874aaba208e7617ec1b46c1033f75184597c42b /libs/kstd/src/libc/stdlib.cpp | |
| parent | 760f6ca4d59f6bf90f70944df4f418c236f8eab1 (diff) | |
| download | teachos-62bf2eef72854750c7325d2e2c6e92562a522e16.tar.xz teachos-62bf2eef72854750c7325d2e2c6e92562a522e16.zip | |
implement memcpy
Diffstat (limited to 'libs/kstd/src/libc/stdlib.cpp')
| -rw-r--r-- | libs/kstd/src/libc/stdlib.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/libs/kstd/src/libc/stdlib.cpp b/libs/kstd/src/libc/stdlib.cpp index 4a5c91f..bb40605 100644 --- a/libs/kstd/src/libc/stdlib.cpp +++ b/libs/kstd/src/libc/stdlib.cpp @@ -1,19 +1,19 @@ -#include "kstd/os/error.hpp" - -namespace kstd::libc -{ - - extern "C" - { - [[noreturn]] auto abort() -> void - { - kstd::os::abort(); - } - - [[noreturn, gnu::weak]] auto free(void *) -> void - { - kstd::os::panic("Tried to call free."); - } - } - +#include "kstd/os/error.hpp"
+
+namespace kstd::libc
+{
+
+ extern "C"
+ {
+ [[noreturn]] auto abort() -> void
+ {
+ kstd::os::abort();
+ }
+
+ [[noreturn, gnu::weak]] auto free(void *) -> void
+ {
+ kstd::os::panic("Tried to call free.");
+ }
+ }
+
} // namespace kstd::libc
\ No newline at end of file |
