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

Function new_nhfile

src/files.c:495–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493staticfn
494#endif
495NHFILE *
496new_nhfile(void)
497{
498 NHFILE *nhfp = (NHFILE *) alloc(sizeof *nhfp);
499
500 memset((genericptr_t) nhfp, 0, sizeof *nhfp);
501 init_nhfile(nhfp);
502 return nhfp;
503}
504
505#ifndef SFCTOOL
506staticfn

Callers 9

create_levelfileFunction · 0.85
open_levelfileFunction · 0.85
create_bonesfileFunction · 0.85
open_bonesfileFunction · 0.85
create_savefileFunction · 0.85
open_savefileFunction · 0.85
get_freeing_nhfileFunction · 0.85
open_srcfileFunction · 0.85
create_dstfileFunction · 0.85

Calls 2

init_nhfileFunction · 0.85
allocFunction · 0.70

Tested by

no test coverage detected