summaryrefslogtreecommitdiff
path: root/com32/lib/fputc.c
blob: 7a1bf0b91fb3e2ea33ac7022436eb572b3ed9bc9 (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;
}