Writes output directly to the current application screen under format control
#include <nwconio.h>
int cprintf (
const char *format,
...);
(IN) Points to the format specification string.
Returns the number of characters written.
The cprintf function outputs the formatted data directly to the console screen.
#include <nwconio.h> #include <stdio.h> main () { char *weekday, *month; int day, year; weekday="Saturday"; month="April"; day=18; year=1991; cprintf ("%s, %s %d, %d\n", weekday, month, day, year); }
produces the following:
Saturday, April 18, 1991