MCPcopy Index your code
hub / github.com/NetHack/NetHack / Fread

Function Fread

src/dungeon.c:267–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265#ifndef SFCTOOL
266#if 0
267staticfn void
268Fread(genericptr_t ptr, int size, int nitems, dlb *stream)
269{
270 int cnt;
271
272 if ((cnt = dlb_fread(ptr, size, nitems, stream)) != nitems) {
273 panic(
274 "Premature EOF on dungeon description file!\r\nExpected %d bytes - got %d.",
275 (size * nitems), (size * cnt));
276 nh_terminate(EXIT_FAILURE);
277 }
278}
279#endif
280
281DISABLE_WARNING_UNREACHABLE_CODE

Callers

nothing calls this directly

Calls 3

dlb_freadFunction · 0.85
nh_terminateFunction · 0.70
panicFunction · 0.50

Tested by

no test coverage detected