From: cuz Date: Thu, 18 Jul 2002 13:38:40 +0000 (+0000) Subject: Added stroserror-test.c X-Git-Tag: V2.12.0~2259 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c1c24d6df5c5fbb58a0a35bbbac3a33e9921afb5;p=cc65 Added stroserror-test.c git-svn-id: svn://svn.cc65.org/cc65/trunk@1366 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/testcode/lib/stroserror-test.c b/testcode/lib/stroserror-test.c new file mode 100644 index 000000000..9eabf5fc1 --- /dev/null +++ b/testcode/lib/stroserror-test.c @@ -0,0 +1,31 @@ +#include +#include +#include + + +int main (void) +{ + unsigned char error = 0; + unsigned char line = 0; + unsigned char maxx, maxy; + screensize (&maxx, &maxy); + do { + printf ("%2d: %s\n", error, _stroserror (error)); + if (line == maxy-3) { + printf ("Press any key...\n"); + if (cgetc () == 'q') { + return 0; + } + clrscr (); + line = 0; + } else { + ++line; + } + ++error; + } while (error != 0); + + return 0; +} + + +