From bf2d121899c028eed140b679b4e059db8af91fe8 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 22 Nov 2023 21:07:36 +0100 Subject: LibC: Add fflush() and buffer writes to file descriptors --- userland/libc/stdio/fflush.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'userland/libc/stdio/fflush.c') diff --git a/userland/libc/stdio/fflush.c b/userland/libc/stdio/fflush.c index 7a37c79..3042efa 100644 --- a/userland/libc/stdio/fflush.c +++ b/userland/libc/stdio/fflush.c @@ -2,6 +2,7 @@ // https://pubs.opengroup.org/onlinepubs/9699919799/functions/fflush.html int fflush(FILE *stream) { - // FIXME: Implement + if (stream->fflush) + stream->fflush(stream); return 0; } -- cgit v1.2.3