From 38a061e43948e59c9477e3d5470bc194c67aa5ee Mon Sep 17 00:00:00 2001 From: cpg Date: Thu, 26 Nov 2009 18:19:35 +0000 Subject: [PATCH] initial check-in git-svn-id: svn://svn.cc65.org/cc65/trunk@4493 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- testcode/lib/atari/defdev.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 testcode/lib/atari/defdev.c diff --git a/testcode/lib/atari/defdev.c b/testcode/lib/atari/defdev.c new file mode 100644 index 000000000..717eaa4f3 --- /dev/null +++ b/testcode/lib/atari/defdev.c @@ -0,0 +1,18 @@ +/* + * testprogram printing the default device + * + * 26-Nov-2009, Christian Groessler + */ + +#include +#include +#include + +extern char _defdev[]; + +int main(void) +{ + printf("default device: %s\n", _defdev); + if (_dos_type != SPARTADOS && _dos_type != OSADOS) cgetc(); + return 0; +} -- 2.39.5