aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/include
diff options
context:
space:
mode:
authorLukas Oesch <lukasoesch20@gmail.com>2026-03-02 23:43:09 +0100
committerLukas Oesch <lukasoesch20@gmail.com>2026-03-17 16:42:27 +0100
commit62bf2eef72854750c7325d2e2c6e92562a522e16 (patch)
treef874aaba208e7617ec1b46c1033f75184597c42b /libs/kstd/include
parent760f6ca4d59f6bf90f70944df4f418c236f8eab1 (diff)
downloadteachos-62bf2eef72854750c7325d2e2c6e92562a522e16.tar.xz
teachos-62bf2eef72854750c7325d2e2c6e92562a522e16.zip
implement memcpy
Diffstat (limited to 'libs/kstd/include')
-rw-r--r--libs/kstd/include/kstd/cstring19
1 files changed, 19 insertions, 0 deletions
diff --git a/libs/kstd/include/kstd/cstring b/libs/kstd/include/kstd/cstring
new file mode 100644
index 0000000..e97ecac
--- /dev/null
+++ b/libs/kstd/include/kstd/cstring
@@ -0,0 +1,19 @@
+#ifndef KSTD_CSTRING
+#define KSTD_CSTRING
+
+#include <cstddef>
+
+namespace kstd::libc
+{
+
+ extern "C"
+ {
+ auto memcpy(void * dest, void const * src, std::size_t size) -> void *;
+ auto memmove(void * dest, void const * src, std::size_t size) -> void *;
+ auto memcmp(void const * lhs, void const * rhs, std::size_t size) -> std::size_t;
+ auto strlen(char const * string) -> std::size_t;
+ }
+
+} // namespace kstd::libc
+
+#endif \ No newline at end of file