MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / fclose

Method fclose

source/core/StarFile_unix.cpp:270–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void File::fclose(void* file) {
271 if (::close(fdFromHandle(file)) < 0)
272 throw IOException::format("Close error: {}", strerror(errno));
273}
274
275StreamOffset File::fsize(void* file) {
276 StreamOffset pos = ftell(file);

Callers

nothing calls this directly

Calls 2

fdFromHandleFunction · 0.85
formatFunction · 0.70

Tested by

no test coverage detected