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

Function loadfruitchn

src/restore.c:467–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467staticfn struct fruit *
468loadfruitchn(NHFILE *nhfp)
469{
470 struct fruit *flist, *fnext;
471
472 flist = 0;
473 for (;;) {
474 fnext = newfruit();
475 Sfi_fruit(nhfp, fnext, "fruit");
476 if (fnext->fid != 0) {
477 fnext->nextf = flist;
478 flist = fnext;
479 } else
480 break;
481 }
482 dealloc_fruit(fnext);
483 return flist;
484}
485
486staticfn void
487freefruitchn(struct fruit *flist)

Callers 2

restgamestateFunction · 0.85
getlevFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected