]> git.sur5r.net Git - cc65/commitdiff
initial check-in
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 26 Nov 2009 18:19:35 +0000 (18:19 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 26 Nov 2009 18:19:35 +0000 (18:19 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4493 b7a2c559-68d2-44c3-8de9-860c34a00d81

testcode/lib/atari/defdev.c [new file with mode: 0644]

diff --git a/testcode/lib/atari/defdev.c b/testcode/lib/atari/defdev.c
new file mode 100644 (file)
index 0000000..717eaa4
--- /dev/null
@@ -0,0 +1,18 @@
+/*
+ * testprogram printing the default device
+ *
+ * 26-Nov-2009, Christian Groessler
+ */
+
+#include <stdio.h>
+#include <conio.h>
+#include <atari.h>
+
+extern char _defdev[];
+
+int main(void)
+{
+       printf("default device: %s\n", _defdev);
+       if (_dos_type != SPARTADOS && _dos_type != OSADOS) cgetc();
+       return 0;
+}