From d07bd08dd0446e8c41eccaccbb07e9112200e8ee Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sun, 24 May 2026 11:09:31 +0000 Subject: rename and move, function renames in stdio --- lib/api/libc/stdio.h | 18 ++++++++++++++++++ lib/api/libc/string.h | 14 ++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 lib/api/libc/stdio.h create mode 100644 lib/api/libc/string.h (limited to 'lib/api/libc') 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 + +#include + +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 + +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); + -- cgit v1.3.1-1-g115d