From 07d5b4852cf5564781a321ed9b3daeb2ababed28 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 19 Apr 2026 20:52:29 +0100 Subject: [PATCH] libc: io: fputc now updates errno on success --- lib/libc/io/stdio/fputc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/io/stdio/fputc.c b/lib/libc/io/stdio/fputc.c index df41978..3a323a7 100644 --- a/lib/libc/io/stdio/fputc.c +++ b/lib/libc/io/stdio/fputc.c @@ -15,6 +15,7 @@ int __fputc(int c, struct __opaque_file *stream) return EOF; } + __set_errno(SUCCESS); return c; }