MCPcopy Index your code
hub / github.com/NetHack/NetHack / dump_open_log

Function dump_open_log

src/windows.c:1243–1264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241#endif /* DUMPLOG */
1242
1243void
1244dump_open_log(time_t now)
1245{
1246#ifdef DUMPLOG
1247 char buf[BUFSZ];
1248 char *fname;
1249
1250 dumplog_now = now;
1251#ifdef SYSCF
1252 if (!sysopt.dumplogfile)
1253 return;
1254 fname = dump_fmtstr(sysopt.dumplogfile, buf, TRUE);
1255#else
1256 fname = dump_fmtstr(DUMPLOG_FILE, buf, TRUE);
1257#endif
1258 dumplog_file = fopen(fname, "w");
1259 dumplog_windowprocs_backup = windowprocs;
1260
1261#else /*!DUMPLOG*/
1262 nhUse(now);
1263#endif /*?DUMPLOG*/
1264}
1265
1266void
1267dump_close_log(void)

Callers 1

really_doneFunction · 0.85

Calls 1

dump_fmtstrFunction · 0.85

Tested by

no test coverage detected