From 4c5bd4bf326332597be0cf7e3f9ebc3952e4ca7a Mon Sep 17 00:00:00 2001 From: cpg Date: Sun, 11 Jun 2000 23:56:09 +0000 Subject: [PATCH] test program for cprintf() git-svn-id: svn://svn.cc65.org/cc65/trunk@57 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- testcode/lib/cprintf.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 testcode/lib/cprintf.c diff --git a/testcode/lib/cprintf.c b/testcode/lib/cprintf.c new file mode 100644 index 000000000..7f58070f5 --- /dev/null +++ b/testcode/lib/cprintf.c @@ -0,0 +1,38 @@ +/* + * test program for the cprintf() function + * (for the \r and \n special operators) + * CPG + * + * The output generated by this program should look + * like this: + * + * ---- top of screen -------- + * 12345 + * 67890 + * + * + * 67890 + * + * hit return to exit.... + . + . + . + * ---- bottom of screen ----- + */ + +#include +#include + +int main(void) +{ + clrscr(); + cprintf("12345\n"); + cprintf("67890\n"); + gotoxy(0,4); + cprintf("12345\r"); + cprintf("67890\r"); + printf("\n\n"); + printf("hit return to exit....\n"); + fgetc(stdin); + return(0); +} -- 2.39.5