MCPcopy Create free account
hub / github.com/NetHack/NetHack / bflush

Function bflush

src/sfstruct.c:477–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477void
478bflush(int fd)
479{
480 int idx = getidx(fd, NOFLG);
481
482 if (idx >= 0) {
483#ifdef USE_BUFFERING
484 if (bw_FILE[idx]) {
485 if (fflush(bw_FILE[idx]) == EOF)
486 panic("flush of savefile failed!");
487 }
488#endif
489 }
490 return;
491}
492
493void
494bwrite(int fd, const genericptr_t loc, unsigned num)

Callers 3

savegamestateFunction · 0.85
savelev_coreFunction · 0.85
bufoffFunction · 0.85

Calls 3

getidxFunction · 0.85
fflushFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected