Root/
Source at commit 1308 created 12 years 8 months ago. By meklort, Add a few placeholders for file io | |
---|---|
1 | /*␊ |
2 | * fread2.c␊ |
3 | *␊ |
4 | * The actual fread() function as a non-inline␊ |
5 | */␊ |
6 | ␊ |
7 | #define __NO_FREAD_FWRITE_INLINES␊ |
8 | #include <stdio.h>␊ |
9 | extern size_t _fread(void *buf, size_t count, FILE *f);␊ |
10 | size_t fread(void *ptr, size_t size, size_t nmemb, FILE * f)␊ |
11 | {␊ |
12 | ␉return _fread(ptr, size * nmemb, f) / size;␊ |
13 | }␊ |
14 |