]> git.sur5r.net Git - cc65/blob - testcode/lib/stroserror-test.c
clock-test.c: remove "static" optimization
[cc65] / testcode / lib / stroserror-test.c
1 #include <stdio.h>
2 #include <string.h>
3 #include <conio.h>
4
5
6 int main (void)
7 {
8     unsigned char error = 0;
9     unsigned char line = 0;
10     unsigned char maxx, maxy;
11     screensize (&maxx, &maxy);
12     do {
13         printf ("%2d: %s\n", error, _stroserror (error));
14         if (line == maxy-3) {
15             printf ("Press any key...\n");
16             if (cgetc () == 'q') {
17                 return 0;
18             }
19             clrscr ();
20             line = 0;
21         } else {
22             ++line;
23         }
24         ++error;
25     } while (error != 0);
26
27     return 0;
28 }
29
30
31