]> git.sur5r.net Git - cc65/blob - testcode/lib/cprintf.c
Merge remote-tracking branch 'irgendwer/AtariOS_Structure' into master
[cc65] / testcode / lib / cprintf.c
1 /*
2 ** test program for the cprintf() function
3 ** (for the \r and \n special operators)
4 ** CPG
5 **
6 ** The output generated by this program should look
7 ** like this:
8 **
9 ** ---- top of screen --------
10 ** 12345
11 **      67890
12 **
13 **
14 ** 67890
15 **
16 ** hit return to exit....
17  .
18  .
19  .
20 ** ---- bottom of screen -----
21 */
22
23 #include <stdio.h>
24 #include <conio.h>
25
26 int main(void)
27 {
28         clrscr();
29         cprintf("12345\n");
30         cprintf("67890\n");
31         gotoxy(0,4);
32         cprintf("12345\r");
33         cprintf("67890\r");
34         printf("\n\n");
35         printf("hit return to exit....\n");
36         fgetc(stdin);
37         return(0);
38 }