mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-06 04:49:16 +00:00
userspace/libc: implement fprintf function
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -214,7 +214,14 @@ export FILE *fopen(const char *restrict pathname, const char *restrict mode)
|
||||
return file;
|
||||
}
|
||||
|
||||
export int fprintf(FILE *restrict, const char *restrict, ...);
|
||||
export int fprintf(FILE *restrict stream, const char *restrict format, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
int ret = vfprintf(stream, format, args);
|
||||
va_end(args);
|
||||
return ret;
|
||||
}
|
||||
|
||||
export int fputc(int c, FILE *stream)
|
||||
{
|
||||
|
Reference in New Issue
Block a user