1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 00:07:21 +00:00
cc65/testcode/lib/cprintf.c
Greg King 0390c34e88 Changed multi-line C comments into another style.
The left side doesn't look unbalanced.
2014-06-30 16:51:07 -04:00

39 lines
626 B
C

/*
** 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);
}