summaryrefslogtreecommitdiff
path: root/api/libc
diff options
context:
space:
mode:
Diffstat (limited to 'api/libc')
-rw-r--r--api/libc/stdlib.h6
-rw-r--r--api/libc/string.h11
-rw-r--r--api/libc/wchar.h6
3 files changed, 23 insertions, 0 deletions
diff --git a/api/libc/stdlib.h b/api/libc/stdlib.h
new file mode 100644
index 0000000..76a78eb
--- /dev/null
+++ b/api/libc/stdlib.h
@@ -0,0 +1,6 @@
+#pragma once
+
+#include <stddef.h>
+
+size_t mbstowcs(wchar_t *dst, const char *src, size_t length);
+
diff --git a/api/libc/string.h b/api/libc/string.h
new file mode 100644
index 0000000..d1d45d5
--- /dev/null
+++ b/api/libc/string.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include <stddef.h>
+
+void *memcpy(void *dest, const void *src, size_t size);
+void *memmove(void *dest, const void *src, size_t size);
+void *memset(void *dest, int val, size_t size);
+int memcmp(const void *str1, const void *str2, size_t count);
+size_t strlen(const char *s);
+unsigned long long strtoull(const char *restrict begin, char **restrict end, int base);
+
diff --git a/api/libc/wchar.h b/api/libc/wchar.h
new file mode 100644
index 0000000..4dd339d
--- /dev/null
+++ b/api/libc/wchar.h
@@ -0,0 +1,6 @@
+#pragma once
+
+#include <stddef.h>
+
+size_t wcslen(const wchar_t *s);
+