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

Function exportascii_sfi_uchar

util/sfexpasc.c:829–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

827#endif
828
829void
830exportascii_sfi_uchar(NHFILE *nhfp, unsigned char *d_uchar, const char *myname UNUSED)
831{
832 uchar tmp;
833 int itmp;
834 char *rstr;
835
836 rstr = get_savefield(nhfp, linebuf, BUFSZ);
837 itmp = atoi(rstr);
838 tmp = (char ) itmp;
839#ifdef SAVEFILE_DEBUGGING
840 if (nhfp->structlevel && tmp != *d_uchar)
841 report_problem_ascii(nhfp, myparent, myname, parent);
842 else
843#endif
844 *d_uchar = tmp;
845 d_uchar++;
846}
847
848void
849exportascii_sfi_uint16(NHFILE *nhfp, uint16 *d_uint16, 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