MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / fwrite

Function fwrite

system/lib/libc/musl/src/stdio/fwrite.c:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28size_t fwrite(const void *restrict src, size_t size, size_t nmemb, FILE *restrict f)
29{
30 size_t k, l = size*nmemb;
31 if (!size) nmemb = 0;
32 FLOCK(f);
33 k = __fwritex(src, l, f);
34 FUNLOCK(f);
35 return k==l ? nmemb : k/size;
36}
37
38weak_alias(fwrite, fwrite_unlocked);

Callers 15

test_stdstreamsFunction · 0.85
test_writingFunction · 0.85
test_tempfilesFunction · 0.85
setupFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
create_fileFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
__do_fputcFunction · 0.85
overflowMethod · 0.85
xsputnMethod · 0.85

Calls 1

__fwritexFunction · 0.85

Tested by 8

test_stdstreamsFunction · 0.68
test_writingFunction · 0.68
test_tempfilesFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
create_fileFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68