Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/modules/klibc/fputc.c

Source at commit 1308 created 12 years 8 months ago.
By meklort, Add a few placeholders for file io
1/*
2 * fputc.c
3 *
4 * gcc "printf decompilation" expects this to exist...
5 */
6
7#include <stdio.h>
8extern size_t _fwrite(const void *buf, size_t count, FILE *f);
9int fputc(int c, FILE *f)
10{
11unsigned char ch = c;
12
13return _fwrite(&ch, 1, f) == 1 ? ch : EOF;
14}
15

Archive Download this file

Revision: 1308