diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-10 23:29:33 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-10 23:29:33 -0400 |
commit | 4c1d03b082f4972c02f5794976f4651fc5f85795 (patch) | |
tree | 0301195d09650346c91bd530a2eef735f98aea86 /user/include/stdio.h | |
parent | make lib betterer (diff) | |
download | comus-4c1d03b082f4972c02f5794976f4651fc5f85795.tar.gz comus-4c1d03b082f4972c02f5794976f4651fc5f85795.tar.bz2 comus-4c1d03b082f4972c02f5794976f4651fc5f85795.zip |
fmt
Diffstat (limited to 'user/include/stdio.h')
-rw-r--r-- | user/include/stdio.h | 13 |
1 files changed, 8 insertions, 5 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 |