summaryrefslogtreecommitdiff
path: root/com32/lib/fwrite2.c
blob: 4d706e1cc52b34062cbc58aff5db97097417293d (plain)
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_FREAD_FWRITE_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;
}