allwinner_a64/android/external/syslinux/com32/lib/putchar.c
2018-08-08 16:14:42 +08:00

16 lines
217 B
C

/*
* putchar.c
*
* gcc "printf decompilation" expects this to exist...
*/
#include <stdio.h>
#undef putchar
int putchar(int c)
{
unsigned char ch = c;
return _fwrite(&ch, 1, stdout) == 1 ? ch : EOF;
}