MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / fwrite_fully

Function fwrite_fully

extlibs/fmt/include/fmt/format-inl.h:166–170  ·  view source on GitHub ↗

A wrapper around fwrite that throws on error.

Source from the content-addressed store, hash-verified

164
165// A wrapper around fwrite that throws on error.
166FMT_FUNC void fwrite_fully(const void* ptr, size_t size, size_t count,
167 FILE* stream) {
168 size_t written = std::fwrite(ptr, size, count, stream);
169 if (written < count) FMT_THROW(system_error(errno, "cannot write to file"));
170}
171} // namespace internal
172
173#if !defined(FMT_STATIC_THOUSANDS_SEPARATOR)

Callers 2

vprintFunction · 0.85
vprint_mojibakeMethod · 0.85

Calls 1

system_errorFunction · 0.85

Tested by

no test coverage detected