diff options
| author | Ada Christine <adachristine18@gmail.com> | 2024-02-11 23:48:04 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2024-02-11 23:48:04 +0000 |
| commit | 3f9278b48ff4bc0d2cf1604034b3bba548572f04 (patch) | |
| tree | dbdabed3ff580079d2e21045d2cbc5b274c2e418 /api/libc | |
| parent | 9fbfc6e951e565ef98c49c1dcfc4b6a39514f17d (diff) | |
kjarna initial impl
Diffstat (limited to 'api/libc')
| -rw-r--r-- | api/libc/stdlib.h | 6 | ||||
| -rw-r--r-- | api/libc/string.h | 11 | ||||
| -rw-r--r-- | api/libc/wchar.h | 6 |
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); + |
