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

Function cnf_line_GREPPATH

src/cfgfiles.c:1096–1109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094}
1095
1096staticfn boolean
1097cnf_line_GREPPATH(char *bufp)
1098{
1099#if defined(PANICTRACE) && !defined(VMS)
1100 if (!file_exists(bufp)) {
1101 config_error_add("File specified in GREPPATH does not exist");
1102 return FALSE;
1103 }
1104#endif
1105 if (sysopt.greppath)
1106 free((genericptr_t) sysopt.greppath);
1107 sysopt.greppath = dupstr(bufp);
1108 return TRUE;
1109}
1110
1111staticfn boolean
1112cnf_line_CRASHREPORTURL(char *bufp)

Callers

nothing calls this directly

Calls 3

config_error_addFunction · 0.85
dupstrFunction · 0.85
file_existsFunction · 0.50

Tested by

no test coverage detected