summaryrefslogtreecommitdiff
path: root/userland/libc/stdio/fflush.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/stdio/fflush.c')
-rw-r--r--userland/libc/stdio/fflush.c3
1 files changed, 2 insertions, 1 deletions
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;
}