mirror of
https://github.com/cc65/cc65.git
synced 2024-06-25 13:29:41 +00:00
test program for cprintf()
git-svn-id: svn://svn.cc65.org/cc65/trunk@57 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
22a7951bde
commit
4c5bd4bf32
38
testcode/lib/cprintf.c
Normal file
38
testcode/lib/cprintf.c
Normal file
|
@ -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 <stdio.h>
|
||||||
|
#include <conio.h>
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user