1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +00:00
cc65/testcode/lib/atari/defdev.c
Christian Groessler da65866e24 Atari: add new function '_is_cmdline_dos()' and some other small changes.
- use this function instead of directly looking at _dos_type in the included
  targetutil and test programs
- fixes/improvements to the Atari runtime library regarding the recently
  changed _dos_type values
- libsrc/atari/targetutil/w2cas.c: exit if no filename was entered
- add documentation for the new function
2016-05-25 00:57:43 +02:00

19 lines
299 B
C

/*
** 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 (! _is_cmdline_dos()) cgetc();
return 0;
}