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

Function close_library

src/dlb.c:217–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void
218close_library(library *lp)
219{
220 (void) fclose(lp->fdata);
221 free((genericptr_t) lp->dir);
222 free((genericptr_t) lp->sspace);
223
224 (void) memset((char *) lp, 0, sizeof(library));
225}
226
227/*
228 * Open the library file once using stdio. Keep it open, but

Callers 3

lib_dlb_initFunction · 0.85
lib_dlb_cleanupFunction · 0.85
mainFunction · 0.85

Calls 1

fcloseFunction · 0.85

Tested by

no test coverage detected