1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 01:11:21 +01:00

cpu/native: implement fputc, too

This commit is contained in:
Mikolai Gütschow 2025-11-24 16:49:16 +01:00
parent f13f2889d7
commit bb192ee2c6
No known key found for this signature in database
GPG Key ID: 943E2F37AA659AD5

View File

@ -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;