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

Function delete_convertedfile

src/files.c:2156–2165  ·  view source on GitHub ↗

delete converted savefile as a normal course of action */

Source from the content-addressed store, hash-verified

2154
2155/* delete converted savefile as a normal course of action */
2156int
2157delete_convertedfile(const char *basefilename)
2158{
2159 if (!converted_filename)
2160 make_converted_name(basefilename);
2161 if (converted_filename) {
2162 (void) unlink(converted_filename);
2163 }
2164 return 0;
2165}
2166
2167void
2168free_convert_filenames(void)

Callers 2

delete_bonesfileFunction · 0.85
delete_savefileFunction · 0.85

Calls 2

make_converted_nameFunction · 0.85
unlinkFunction · 0.85

Tested by

no test coverage detected