From e43939bcc6123e02314aa403eef94d5ace441f7f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 27 Aug 2023 02:06:32 +0200 Subject: ports: qbe, cproc :^) --- src/libc/include/stdio.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libc/include/stdio.h') diff --git a/src/libc/include/stdio.h b/src/libc/include/stdio.h index c579df5..b582e8f 100644 --- a/src/libc/include/stdio.h +++ b/src/libc/include/stdio.h @@ -1,4 +1,5 @@ #pragma once + #include #include #include @@ -27,6 +28,7 @@ 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 snprintf(char *restrict str, size_t len, const char *restrict fmt, ...); int vprintf(const char *restrict fmt, va_list ap); int vsprintf(char *restrict s, const char *restrict fmt, va_list ap); @@ -86,4 +88,6 @@ char *tmpnam(char *s); int sscanf(const char *restrict s, const char *restrict format, ...); int vsscanf(const char* str, const char* format, va_list ap); +int fscanf(FILE* fp, const char* format, ...); +int vfscanf(FILE* fp, const char* format, va_list ap); int vcbscanf(void* fp, int (*fgetc)(void*), int (*ungetc)(int, void*), const char* restrict format, va_list ap); -- cgit v1.2.3