Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/fputc.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 195 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 /*
2 * fputc.c
3 *
4 * gcc "printf decompilation" expects this to exist...
5 */
6
7 #include <stdio.h>
8
9 int fputc(int c, FILE *f)
10 {
11 unsigned char ch = c;
12
13 return _fwrite(&ch, 1, f) == 1 ? ch : EOF;
14 }