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

Function close_file

outdated/sys/mac/mrecover.c:1318–1328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1316}
1317
1318static void
1319close_file(short *pFRefNum)
1320{
1321 if (FSClose(*pFRefNum) || FlushVol((StringPtr) 0L, vRefNum)) {
1322 endRecover();
1323 note(noErr, alidNote, "\pSorry: File Close Error");
1324 return;
1325 }
1326
1327 *pFRefNum = -1;
1328}
1329
1330static void
1331unlink_file(unsigned char *filename)

Callers 1

restore_savefileFunction · 0.85

Calls 2

endRecoverFunction · 0.85
noteFunction · 0.85

Tested by

no test coverage detected