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

Function exportascii_sfi_uint64

util/sfexpasc.c:886–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884}
885
886void
887exportascii_sfi_uint64(NHFILE *nhfp, uint64 *d_uint64, const char *myname UNUSED)
888{
889 char *rstr;
890 uint64 tmp;
891 long long lltmp;
892
893 rstr = get_savefield(nhfp, linebuf, BUFSZ);
894 lltmp = atoll(rstr);
895 tmp = (uint64) lltmp;
896#ifdef SAVEFILE_DEBUGGING
897 if (nhfp->structlevel && tmp != *d_uint)
898 report_problem_ascii(nhfp, myparent, myname, parent);
899 else
900#endif
901 *d_uint64 = tmp;
902 d_uint64++;
903}
904
905void
906exportascii_sfi_unsigned(NHFILE *nhfp, unsigned *d_unsigned, 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