diff options
| author | Prakxo <87568477+Prakxo@users.noreply.github.com> | 2023-08-17 00:39:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-16 16:39:17 -0700 |
| commit | 1bebc761b638ad061778667e4bab4ec92fe81aa7 (patch) | |
| tree | 48fd9c72be87a1d6f7ebb780c2a0829d8c883006 /include | |
| parent | 043f0a3b259eee6bce038b76615e4ae5d3c8f1f0 (diff) | |
sprintf OK (#57)
* sprintf OK
* format
* refactor
Diffstat (limited to 'include')
| -rw-r--r-- | include/libc/stdarg.h | 4 | ||||
| -rw-r--r-- | include/libc64/sprintf.h | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/include/libc/stdarg.h b/include/libc/stdarg.h index 77b8b88..25940ed 100644 --- a/include/libc/stdarg.h +++ b/include/libc/stdarg.h @@ -1,5 +1,5 @@ -#ifndef STDARG_H -#define STDARG_H +#ifndef _STDARG_H +#define _STDARG_H #include "ultra64.h" diff --git a/include/libc64/sprintf.h b/include/libc64/sprintf.h index 8707f8f..32d2b24 100644 --- a/include/libc64/sprintf.h +++ b/include/libc64/sprintf.h @@ -2,9 +2,10 @@ #define LIBC64_SPRINTF_H #include "ultra64.h" +#include "libc/stdarg.h" -// void proutSprintf(); -// void vsprintf(); -int sprintf(char* dst, const char* fmt, ...); +void* proutPrintf(void* dst, const char* fmt, size_t size); +int vsprintf(char* dst, char* fmt, va_list args); +int sprintf(char *s, const char *fmt, ...); #endif |
