Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/fwrite2.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: 244 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 * fwrite2.c
3 *
4 * The actual fwrite() function as a non-inline
5 */
6
7 #define __NO_FREAD_FWRITE_INLINES
8 #include <stdio.h>
9
10 size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE * f)
11 {
12 return _fwrite(ptr, size * nmemb, f) / size;
13 }