1 2 3 4 5 6 7 8
#include <stdio.h> int fputc(int c, FILE *stream) { if (fwrite(&c, 1, 1, stream) > 0) { return c; } return EOF; }