write output directly to the console
#include <conio.h> int cprintf( const char *format, ... );
The cprintf() function writes output directly to the console under control of the argument format. The putch() function is used to output characters to the console. The format string is described under the description of the printf() function.
the number of characters written
_bprintf(), fprintf(), printf(), putch(), sprintf(), _vbprintf(), vcprintf(), vfprintf(), vprintf(), vsprintf()
#include <conio.h> void main() { char *weekday, *month; int day, year; weekday = "Saturday"; month = "April"; day = 18; year = 1987; cprintf( "%s, %s %d, %d\n", weekday, month, day, year ); }
produces the output:
Saturday, April 18, 1987
WATCOM
All (except DOS/PM)