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

Function logging_finish

src/sfstruct.c:603–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601
602#ifdef SFLOGGING
603staticfn void
604logging_finish(void)
605{
606 int i;
607
608 for (i = 0; i < SIZE(ofp); ++i) {
609 if (ofp[i]) {
610 fclose(ofp[i]);
611 ofp[i] = 0;
612 }
613 }
614 ocnt = 0L;
615
616 for (i = 0; i < SIZE(ifp); ++i) {
617 if (ifp[i]) {
618 fclose(ifp[i]);
619 ifp[i] = 0;
620 }
621 }
622 icnt = 0L;
623}
624#endif /* SFLOGGING */
625
626#undef SF_X

Callers

nothing calls this directly

Calls 1

fcloseFunction · 0.85

Tested by

no test coverage detected