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

Function exportascii_sfi_short

util/sfexpasc.c:1023–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1021}
1022
1023void
1024exportascii_sfi_short(NHFILE *nhfp, short *d_short, const char *myname UNUSED)
1025{
1026 xint16 tmp;
1027 int itmp;
1028 char *rstr;
1029
1030 rstr = get_savefield(nhfp, linebuf, BUFSZ);
1031 itmp = atoi(rstr);
1032 tmp = (xint16) itmp;
1033#ifdef SAVEFILE_DEBUGGING
1034 if (nhfp->structlevel && tmp != *d_short)
1035 report_problem_ascii(nhfp, "", myname, parent);
1036 else
1037#endif
1038 *d_short = tmp;
1039 d_short++;
1040}
1041
1042
1043void

Callers

nothing calls this directly

Calls 2

get_savefieldFunction · 0.85
report_problem_asciiFunction · 0.85

Tested by

no test coverage detected