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

Function exportascii_sfi_schar

util/sfexpasc.c:736–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736void
737exportascii_sfi_schar(NHFILE *nhfp, schar *d_schar, const char *myname UNUSED)
738{
739 schar tmp;
740 char *rstr;
741
742 rstr = get_savefield(nhfp, linebuf, BUFSZ);
743 tmp = (schar) atoi(rstr);
744#ifdef SAVEFILE_DEBUGGING
745 if (nhfp->structlevel && tmp != *d_schar)
746 report_problem_ascii(nhfp, myparent, myname, parent);
747 else
748#endif
749 *d_schar = tmp;
750 d_schar++;
751}
752
753void
754exportascii_sfi_int16(NHFILE *nhfp, short *d_short, const char *myname UNUSED)

Callers

nothing calls this directly

Calls 2

get_savefieldFunction · 0.85
report_problem_asciiFunction · 0.85

Tested by

no test coverage detected