]> git.sur5r.net Git - cc65/blob - testcode/lib/exec-test1.c
Add translation from PETSCII to screen codes.
[cc65] / testcode / lib / exec-test1.c
1 /*
2 ** These programs test cc65's exec() program-chaining function.
3 ** exec-test1 runs exec-test2 -- that tests the loading and starting of another
4 ** program.  Then, exec-test2 runs arg-test -- that tests command-line argument
5 ** passing.
6 **
7 ** 2013-08-24, Greg King
8 */
9
10 #include <unistd.h>
11 #include <string.h>
12 #include <errno.h>
13 #include <conio.h>
14
15 int main (void) {
16     clrscr ();
17     cprintf ("\nExec-test #1 -- launching #2...\r\n");
18
19     exec ("exec-test2", "");
20
21     cprintf ("\nFailed to find #2:\r\n %s.\r\n", _stroserror (_oserror));
22     cgetc ();
23     return _oserror;
24 }