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

Function delete_bonesfile

src/files.c:992–1001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

990}
991
992int
993delete_bonesfile(d_level *lev)
994{
995 int reslt;
996
997 (void) set_bonesfile_name(gb.bones, lev);
998 reslt = unlink(fqname(gb.bones, BONESPREFIX, 0));
999 delete_convertedfile(fqname(gb.bones, BONESPREFIX, 0));
1000 return !(reslt < 0);
1001}
1002
1003/* assume we're compressing the recently read or created bonesfile, so the
1004 * file name is already set properly */

Callers 2

savebonesFunction · 0.85
getbonesFunction · 0.85

Calls 4

set_bonesfile_nameFunction · 0.85
unlinkFunction · 0.85
fqnameFunction · 0.85
delete_convertedfileFunction · 0.85

Tested by

no test coverage detected