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

Function exportascii_sfi_unsigned

util/sfexpasc.c:905–922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905void
906exportascii_sfi_unsigned(NHFILE *nhfp, unsigned *d_unsigned, const char *myname UNUSED)
907{
908 char *rstr;
909 uint32 tmp;
910 long long lltmp;
911
912 rstr = get_savefield(nhfp, linebuf, BUFSZ);
913 lltmp = atoll(rstr);
914 tmp = (uint32) lltmp;
915#ifdef SAVEFILE_DEBUGGING
916 if (nhfp->structlevel && tmp != *d_unsigned)
917 report_problem_ascii(nhfp, "", myname, parent);
918 else
919#endif
920 *d_unsigned = tmp;
921 d_unsigned++;
922}
923
924void
925exportascii_sfi_ulong(NHFILE *nhfp, unsigned long *d_ulong, 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