home *** CD-ROM | disk | FTP | other *** search
- main() /* lprintf.c -- demonstrates lprintf() */
-
- {
- char c;
- int i;
- char *cp;
- double d;
-
- c = 'A';
- i = 999;
- cp = "This is an arbitrary string.";
- d = 123.456;
- lprintf("%c %d %s %lf\n", c, i, cp, d);
- puts("Correct answer (on printer):A 999 This is an arbitrary string. 123.456000");
- }