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

Function exportascii_sfi_long

util/sfexpasc.c:717–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715 d_int++;
716}
717void
718exportascii_sfi_long(NHFILE *nhfp, long *d_long, const char *myname UNUSED)
719{
720 long tmp;
721 long long lltmp;
722 char *rstr;
723
724 rstr = get_savefield(nhfp, linebuf, BUFSZ);
725 lltmp = atoll(rstr);
726 tmp = (long) lltmp;
727#ifdef SAVEFILE_DEBUGGING
728 if (nhfp->structlevel && tmp != *d_long)
729 report_problem_ascii(nhfp, myparent, myname, parent);
730 else
731#endif
732 *d_long = tmp;
733 d_long++;
734}
735
736void
737exportascii_sfi_schar(NHFILE *nhfp, schar *d_schar, 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