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