diff options
Diffstat (limited to 'Libraries/LibC/stdio.h')
-rw-r--r-- | Libraries/LibC/stdio.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Libraries/LibC/stdio.h b/Libraries/LibC/stdio.h index 18ce1da471..d016c65706 100644 --- a/Libraries/LibC/stdio.h +++ b/Libraries/LibC/stdio.h @@ -101,11 +101,11 @@ int putc(int ch, FILE*); int puts(const char*); int fputs(const char*, FILE*); void perror(const char*); -int scanf(const char* fmt, ...); -int sscanf(const char* str, const char* fmt, ...); -int fscanf(FILE*, const char* fmt, ...); -int vfscanf(FILE*, const char*, va_list); -int vsscanf(const char*, const char*, va_list); +int scanf(const char* fmt, ...) __attribute__((format(scanf, 1, 2))); +int sscanf(const char* str, const char* fmt, ...) __attribute__((format(scanf, 2, 3))); +int fscanf(FILE*, const char* fmt, ...) __attribute__((format(scanf, 2, 3))); +int vfscanf(FILE*, const char*, va_list) __attribute__((format(scanf, 2, 0))); +int vsscanf(const char*, const char*, va_list) __attribute__((format(scanf, 2, 0))); int setvbuf(FILE*, char* buf, int mode, size_t); void setbuf(FILE*, char* buf); void setlinebuf(FILE*); |