From c1c24d6df5c5fbb58a0a35bbbac3a33e9921afb5 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 18 Jul 2002 13:38:40 +0000 Subject: [PATCH] Added stroserror-test.c git-svn-id: svn://svn.cc65.org/cc65/trunk@1366 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- testcode/lib/stroserror-test.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 testcode/lib/stroserror-test.c 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; +} + + + -- 2.39.5