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

Function exportascii_sfi_int16

util/sfexpasc.c:753–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753void
754exportascii_sfi_int16(NHFILE *nhfp, short *d_short, const char *myname UNUSED)
755{
756 short tmp;
757 char *rstr;
758
759 rstr = get_savefield(nhfp, linebuf, BUFSZ);
760 tmp = (short) atoi(rstr);
761#ifdef SAVEFILE_DEBUGGING
762 if (nhfp->structlevel && tmp != *d_short)
763 report_problem_ascii(nhfp, myparent, myname, parent);
764 else
765#endif
766 *d_short = tmp;
767 d_short++;
768}
769
770void
771exportascii_sfi_int64(NHFILE *nhfp, int64 *d_int64, 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