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

Function exportascii_sfi_int64

util/sfexpasc.c:770–785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770void
771exportascii_sfi_int64(NHFILE *nhfp, int64 *d_int64, const char *myname UNUSED)
772{
773 int64 tmp;
774 char *rstr;
775
776 rstr = get_savefield(nhfp, linebuf, BUFSZ);
777 tmp = (int64) atol(rstr);
778#ifdef SAVEFILE_DEBUGGING
779 if (nhfp->structlevel && tmp != *d_int64)
780 report_problem_ascii(nhfp, myparent, myname, parent);
781 else
782#endif
783 *d_int64 = tmp;
784 d_int64++;
785}
786void
787exportascii_sfi_size_t(NHFILE *nhfp, size_t *d_size_t, const char *myname UNUSED)
788{

Callers

nothing calls this directly

Calls 2

get_savefieldFunction · 0.85
report_problem_asciiFunction · 0.85

Tested by

no test coverage detected