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:
parent
f13f2889d7
commit
bb192ee2c6
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user