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

Function write_savefile

outdated/sys/mac/mrecover.c:1304–1316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1302}
1303
1304static long
1305write_savefile(short wrRefNum, Ptr bufPtr, long count)
1306{
1307 long wrCount = count;
1308
1309 if (FSWrite(wrRefNum, &wrCount, bufPtr)) {
1310 endRecover();
1311 note(noErr, alidNote, "\pSorry: File Write Error");
1312 return (-1L);
1313 }
1314
1315 return wrCount;
1316}
1317
1318static void
1319close_file(short *pFRefNum)

Callers 2

copy_bytesFunction · 0.85
restore_savefileFunction · 0.85

Calls 2

endRecoverFunction · 0.85
noteFunction · 0.85

Tested by

no test coverage detected