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

Function historical_sfi_genericptr_t

src/sfstruct.c:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 bwrite(nhfp->fd, (genericptr_t) d_genericptr_t, sizeof *d_genericptr_t);
134}
135void
136historical_sfi_genericptr_t(NHFILE *nhfp, genericptr_t *d_genericptr_t,
137 const char *myname UNUSED)
138{
139 if (nhfp->eof) {
140 sfstruct_read_error();
141 }
142 mread(nhfp->fd, (genericptr_t) d_genericptr_t, sizeof *d_genericptr_t);
143 if (restoreinfo.mread_flags == -1)
144 nhfp->eof = TRUE;
145}
146
147SF_X(uint8_t, bitfield)
148

Callers

nothing calls this directly

Calls 2

sfstruct_read_errorFunction · 0.85
mreadFunction · 0.85

Tested by

no test coverage detected