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

Function exportascii_sfi_coordxy

util/sfexpasc.c:962–979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960}
961
962void
963exportascii_sfi_coordxy(NHFILE *nhfp, coordxy *d_coordxy, const char *myname UNUSED)
964{
965 coordxy tmp;
966 int itmp;
967 char *rstr;
968
969 rstr = get_savefield(nhfp, linebuf, BUFSZ);
970 itmp = atoi(rstr);
971 tmp = (coordxy) itmp;
972#ifdef SAVEFILE_DEBUGGING
973 if (nhfp->structlevel && tmp != *d_coordxy)
974 report_problem_ascii(nhfp, myparent, myname, parent);
975 else
976#endif
977 *d_coordxy = tmp;
978 d_coordxy++;
979}
980
981void
982exportascii_sfi_xint8(NHFILE *nhfp, xint8 *d_xint8, 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