]> git.sur5r.net Git - cc65/blobdiff - samples/diodemo.c
Added '_' prefix to sin and cos.
[cc65] / samples / diodemo.c
index 752c2f78a2d62582f07208345264437d5280c784..3e52f2fa920c8b67c69a17ceac128acf174252e4 100644 (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");