diff options
Diffstat (limited to 'contrib/syslinux-4.02/com32/lib/fputc.c')
-rw-r--r-- | contrib/syslinux-4.02/com32/lib/fputc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/com32/lib/fputc.c b/contrib/syslinux-4.02/com32/lib/fputc.c new file mode 100644 index 0000000..7a1bf0b --- /dev/null +++ b/contrib/syslinux-4.02/com32/lib/fputc.c @@ -0,0 +1,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; +} |