##### Synopsis

    #include <stdio.h>
    int printf(const char *format, ...);

##### Description

printf writes to the standard output stream using putchar, under control of the string pointed to by format that specifies how subsequent arguments are converted for output.

If there are insufficient arguments for the format, the behavior is undefined. If the format is exhausted while arguments remain, the excess arguments are evaluated but are otherwise ignored.

printf returns number of characters transmitted, or a negative value if an output or encoding error occurred.

##### Portability

printf conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).

##### See Also

Format strings for printf functions