[libc] Add basic sprintf function

This commit is contained in:
Drew Galbraith 2023-06-07 22:44:11 -07:00
parent bd32e85164
commit 20dd43cdfb
3 changed files with 101 additions and 0 deletions

10
lib/libc/include/stdio.h Normal file
View file

@ -0,0 +1,10 @@
#pragma once
#include <stdarg.h>
// int fprintf(FILE *stream, const char *format, ...);
int printf(const char *format, ...);
int sprintf(char *str, const char *format, ...);
// int vfprintf(FILE *stream, const char *format, va_list arg);
int vprintf(const char *format, va_list arg);
int vsprintf(char *str, const char *format, va_list arg);