From 4ae57a7fb13e68c5e6f1c1246a867555dbd986db Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 29 Aug 2022 13:57:47 +0200 Subject: user/lua: implement the bare minimum for it to link and "run" --- src/user/lib/include/stdio.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/user/lib/include/stdio.h') diff --git a/src/user/lib/include/stdio.h b/src/user/lib/include/stdio.h index 84fb515..dd6a078 100644 --- a/src/user/lib/include/stdio.h +++ b/src/user/lib/include/stdio.h @@ -27,6 +27,8 @@ int printf(const char *restrict fmt, ...); int fprintf(FILE *restrict f, const char *restrict fmt, ...); +int sprintf(char *restrict s, const char *restrict fmt, ...); + int vprintf(const char *restrict fmt, va_list ap); int vfprintf(FILE *restrict f, const char *restrict fmt, va_list ap); @@ -56,7 +58,7 @@ int fgetc(FILE *f); int getc(FILE *f); int fputc(int c, FILE *f); int putc(int c, FILE *f); -int ungetc(int c, FILE *stream); +int ungetc(int c, FILE *f); int fseek(FILE *f, long offset, int whence); int fseeko(FILE *f, off_t offset, int whence); -- cgit v1.2.3