Make use of doesclrscrafterexit().

This commit is contained in:
Oliver Schmidt
2016-06-18 23:35:57 +02:00
parent 520641890d
commit 9bc096d9b0
8 changed files with 57 additions and 20 deletions

View File

@@ -36,6 +36,7 @@
#include <conio.h>
#include <ctype.h>
#include <errno.h>
#include <cc65.h>
#include <dio.h>
@@ -123,6 +124,11 @@ int main (int argc, const char* argv[])
clrscr ();
screensize (&ScreenX, &ScreenY);
/* Allow user to read exit messages */
if (doesclrscrafterexit ()) {
atexit ((void (*)) cgetc);
}
cputs ("Floppy Disk Copy\r\n");
chline (16);
cputs ("\r\n");