#include <stdio.h>

int printf( char* string, ... );

This function writes formatted output to stdout. The parameter string must point to characters to be copied to the output, as well as format specifications for any arguments that follow. printf() returns the number of characters written. In case of error, a negative number is returned.

See also: fprintf().

Back to Essential C Functions.