diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/include/stdio.h | 13 | ||||
-rw-r--r-- | user/lib/printf.c | 3 |
2 files changed, 9 insertions, 7 deletions
diff --git a/user/include/stdio.h b/user/include/stdio.h index 0994589..8a938ab 100644 --- a/user/include/stdio.h +++ b/user/include/stdio.h @@ -77,7 +77,7 @@ extern int fputs(const char *str, FILE *stream); * @returns number of bytes written */ __attribute__((format(printf, 1, 2))) extern int printf(const char *format, - ...); + ...); /** * prints out a formatted string to a buffer @@ -131,7 +131,7 @@ extern int vsprintf(char *restrict s, const char *format, va_list args); * @returns number of bytes that would of been written (past maxlen) */ extern int vsnprintf(char *restrict s, size_t maxlen, const char *format, - va_list args); + va_list args); /** * prints out a formatted string @@ -169,7 +169,8 @@ extern FILE *fopen(const char *restrict filename, const char *restrict modes); * @param stream - the stream to replace * @returns the file pointer of success, NULL on error */ -extern FILE *freopen(const char *restrict filename, const char *restrict modes, FILE *restrict stream); +extern FILE *freopen(const char *restrict filename, const char *restrict modes, + FILE *restrict stream); /** * closes a opened file @@ -187,7 +188,8 @@ extern void fclose(FILE *stream); * @param stream - the file stream to read from * @returns the number of blocks read */ -extern size_t fread(void *restrict ptr, size_t size, size_t n, FILE *restrict stream); +extern size_t fread(void *restrict ptr, size_t size, size_t n, + FILE *restrict stream); /** * writes data from a pointer into a filename @@ -198,7 +200,8 @@ extern size_t fread(void *restrict ptr, size_t size, size_t n, FILE *restrict st * @param stream - the file stream to write into * @returns the number of blocks written */ -extern size_t fwrite(const void *restrict ptr, size_t size, size_t n, FILE *restrict stream); +extern size_t fwrite(const void *restrict ptr, size_t size, size_t n, + FILE *restrict stream); /** * seek to a certain position on stream diff --git a/user/lib/printf.c b/user/lib/printf.c index 3b5c65f..38b9446 100644 --- a/user/lib/printf.c +++ b/user/lib/printf.c @@ -574,8 +574,7 @@ int vsprintf(char *restrict s, const char *format, va_list args) return ctx.written_len; } -int vsnprintf(char *restrict s, size_t maxlen, const char *format, - va_list args) +int vsnprintf(char *restrict s, size_t maxlen, const char *format, va_list args) { context_t ctx = { 0 }; ctx.format = format; |