[libc] Add fputc/fgetc implementation for MICROLIB
This commit is contained in:
parent
c0628833f3
commit
f677db1ff5
|
@ -273,3 +273,19 @@ int system(const char *string)
|
|||
for (;;);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __MICROLIB
|
||||
#include <stdio.h>
|
||||
|
||||
int fputc(int c, FILE *f)
|
||||
{
|
||||
char ch = c;
|
||||
|
||||
rt_kprintf(&ch);
|
||||
return 1;
|
||||
}
|
||||
|
||||
int fgetc(FILE *f) {
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue