提交 f677db1f 编写于 作者: B Bernard Xiong

[libc] Add fputc/fgetc implementation for MICROLIB

上级 c0628833
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册