aboutsummaryrefslogtreecommitdiff
path: root/src/libs/string.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/string.hpp')
-rw-r--r--src/libs/string.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/libs/string.hpp b/src/libs/string.hpp
new file mode 100644
index 0000000..305b9a8
--- /dev/null
+++ b/src/libs/string.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "core/types.hpp"
+
+/**
+ * Copy data byte per byte from src to dst
+ */
+void memcpy(void *src, void *dst, int size);
+
+/**
+ * Convert int to char array
+ */
+void itoa(u64 i, char *a);
+
+/**
+ * Convert int to char array
+ */
+void itoh(u64 i, char *a);
+
+/**
+ * Length of a char*
+ */
+int strlen(char *s);