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

Function exportascii_sfi_uint16

util/sfexpasc.c:848–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848void
849exportascii_sfi_uint16(NHFILE *nhfp, uint16 *d_uint16, const char *myname UNUSED)
850{
851 char *rstr;
852 unsigned int tmp;
853 long long lltmp;
854
855 rstr = get_savefield(nhfp, linebuf, BUFSZ);
856 lltmp = atoll(rstr);
857 tmp = (unsigned int) lltmp;
858#ifdef SAVEFILE_DEBUGGING
859 if (nhfp->structlevel && tmp != *d_uint)
860 report_problem_ascii(nhfp, myparent, myname, parent);
861 else
862#endif
863 *d_uint16 = tmp;
864 d_uint16++;
865}
866
867void
868exportascii_sfi_uint32(NHFILE *nhfp, uint32 *d_uint32, 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