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

Function cnf_line_SAVEDIR

src/cfgfiles.c:672–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672staticfn boolean
673cnf_line_SAVEDIR(char *bufp)
674{
675#ifdef NOCWD_ASSUMPTIONS
676 adjust_prefix(bufp, SAVEPREFIX);
677#else /*NOCWD_ASSUMPTIONS*/
678#ifdef MICRO
679 char *ptr;
680
681 if ((ptr = strchr(bufp, ';')) != 0) {
682 *ptr = '\0';
683 }
684
685 (void) strncpy(gs.SAVEP, bufp, SAVESIZE - 1);
686 append_slash(gs.SAVEP);
687#else /* MICRO */
688 nhUse(bufp);
689#endif /* MICRO */
690#endif /*NOCWD_ASSUMPTIONS*/
691 return TRUE;
692}
693
694staticfn boolean
695cnf_line_BONESDIR(char *bufp)

Callers

nothing calls this directly

Calls 2

adjust_prefixFunction · 0.85
append_slashFunction · 0.50

Tested by

no test coverage detected