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

Function chdirx

outdated/sys/be/bemain.c:220–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static void
221chdirx(const char *dir)
222{
223 if (!dir)
224 dir = HACKDIR;
225
226 if (chdir(dir) < 0)
227 error("Cannot chdir to %s.", dir);
228
229 /* Warn the player if we can't write the record file */
230 /* perhaps we should also test whether . is writable */
231 check_recordfile(dir);
232}
233
234void
235getlock(void)

Callers 1

MAINFunction · 0.70

Calls 3

check_recordfileFunction · 0.85
chdirFunction · 0.50
errorFunction · 0.50

Tested by

no test coverage detected