From bb192ee2c6bfa66eb23d3e8a2d32b1d14d8e1b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikolai=20G=C3=BCtschow?= Date: Mon, 24 Nov 2025 16:49:16 +0100 Subject: [PATCH] cpu/native: implement fputc, too --- cpu/native/syscalls.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpu/native/syscalls.c b/cpu/native/syscalls.c index 5565135dab..0c46d0fb39 100644 --- a/cpu/native/syscalls.c +++ b/cpu/native/syscalls.c @@ -230,6 +230,12 @@ int putchar(int c) return _native_write(STDOUT_FILENO, &tmp, sizeof(tmp)); } +int fputc(int c, FILE *fp) +{ + char tmp = c; + return _native_write(fileno(fp), &tmp, sizeof(tmp)); +} + int puts(const char *s) { int r;