diff options
| author | Ada Christine <adachristine18@gmail.com> | 2026-05-24 11:09:31 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2026-05-24 11:09:31 +0000 |
| commit | d07bd08dd0446e8c41eccaccbb07e9112200e8ee (patch) | |
| tree | 742a3f9d9d84c8ee55858b2ebc7e0e0f8c714c7c /lib/api/libc | |
| parent | 9aaf21bf10d00ec12b24499817e3e91dca08c461 (diff) | |
rename and move, function renames in stdio
Diffstat (limited to 'lib/api/libc')
| -rw-r--r-- | lib/api/libc/stdio.h | 18 | ||||
| -rw-r--r-- | lib/api/libc/string.h | 14 |
2 files changed, 32 insertions, 0 deletions
diff --git a/lib/api/libc/stdio.h b/lib/api/libc/stdio.h new file mode 100644 index 0000000..1edec4a --- /dev/null +++ b/lib/api/libc/stdio.h @@ -0,0 +1,18 @@ +#pragma once + +#include <libc/string.h> + +#include <stdarg.h> + +typedef struct FILE FILE; + +extern FILE *stdout; +extern FILE *stderr; + +extern int fputc(int c, FILE *f); + +int vfprintf(FILE *f, const char *restrict format, va_list arguments); +int fprintf(FILE *f, const char *restrict format, ...); +int vprintf(const char *restrict format, va_list arguments); +int printf(const char *restrict format, ...); + diff --git a/lib/api/libc/string.h b/lib/api/libc/string.h new file mode 100644 index 0000000..c28e17c --- /dev/null +++ b/lib/api/libc/string.h @@ -0,0 +1,14 @@ +#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); + |
