File: fwrite2.c

package info (click to toggle)
klibc 2.0.1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,248 kB
  • sloc: ansic: 47,887; asm: 2,394; perl: 758; makefile: 193; sh: 183
file content (13 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * fwrite2.c
 *
 * The actual fwrite() function as a non-inline
 */

#define __NO_STDIO_INLINES
#include <stdio.h>

size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE * f)
{
	return _fwrite(ptr, size * nmemb, f) / size;
}