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

Function cnf_line_PERS_IS_UID

src/cfgfiles.c:981–992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

979}
980
981staticfn boolean
982cnf_line_PERS_IS_UID(char *bufp)
983{
984 int n = atoi(bufp);
985
986 if (n != 0 && n != 1) {
987 config_error_add("Illegal value in PERS_IS_UID (must be 0 or 1)");
988 n = 0;
989 }
990 sysopt.pers_is_uid = n;
991 return TRUE;
992}
993
994staticfn boolean
995cnf_line_ENTRYMAX(char *bufp)

Callers

nothing calls this directly

Calls 1

config_error_addFunction · 0.85

Tested by

no test coverage detected