2023-11-16 23:19:36 -05:00

15 lines
202 B
C

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