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

Function dlb_fclose

src/dlb.c:482–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482int
483dlb_fclose(dlb *dp)
484{
485 int ret = 0;
486
487 if (dlb_initialized) {
488 if (dp->fp)
489 ret = fclose(dp->fp);
490 else
491 ret = do_dlb_fclose(dp);
492
493 free((genericptr_t) dp);
494 }
495 return ret;
496}
497
498int
499dlb_fread(char *buf, int size, int quan, dlb *dp)

Callers 15

tty_display_fileFunction · 0.85
qt_display_fileMethod · 0.85
mswin_display_fileFunction · 0.85
curses_view_fileFunction · 0.85
X11_display_fileFunction · 0.85
amii_display_fileFunction · 0.85
nhl_loadluaFunction · 0.85
genl_display_fileFunction · 0.85
read_tributeFunction · 0.85
doextversionFunction · 0.85
checkfileFunction · 0.85

Calls 1

fcloseFunction · 0.85

Tested by

no test coverage detected