printf

Writes formatted output to the standard output stream

#include <stdio.h>
long printf (
        const char *fmt[,argument ...]
)

Arguments

fmt Input format conversion string 

Return Value

The length of the output character string is returned. NULL is returned if an error occurred.

Explanation

Writes formatted output to stdout, the standard output stream. Please refer to the C language reference for a detailed explanation of the input format conversion string. The format specifiers “f”, “e”, “E”, “g” and “G” cannot be used. printf2() of the mathematical function service is used to display floating-point numbers.

See Also

sprintf(), printf2()