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

Function exportascii_sfi_time_t

util/sfexpasc.c:803–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801}
802
803void
804exportascii_sfi_time_t(NHFILE *nhfp, time_t *d_time_t, const char *myname UNUSED)
805{
806 time_t tmp;
807 char *rstr;
808
809 rstr = get_savefield(nhfp, linebuf, BUFSZ);
810 tmp = time_from_yyyymmddhhmmss(rstr);
811#ifdef SAVEFILE_DEBUGGING
812 if (nhfp->structlevel && tmp != *d_time_t)
813 report_problem_ascii(nhfp, myparent, myname, parent);
814 else
815#endif
816 *d_time_t = tmp;
817 d_time_t++;
818}
819
820#if 0
821void

Callers

nothing calls this directly

Calls 3

get_savefieldFunction · 0.85
time_from_yyyymmddhhmmssFunction · 0.85
report_problem_asciiFunction · 0.85

Tested by

no test coverage detected