2000-06-11 23:56:09 +00:00
|
|
|
/*
|
|
|
|
* 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)
|
|
|
|
{
|
2013-05-09 11:56:54 +00:00
|
|
|
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);
|
2000-06-11 23:56:09 +00:00
|
|
|
}
|