summaryrefslogtreecommitdiff
path: root/com32/lib/fputc.c
blob: 61aff1644bf28035565fbeacb7f21eb698196aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * 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;
}