C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
printf
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The printf function formats and prints characters and values to
     the standard output stream, stdout. The <format> argument is a
     string that consists of ordinary characters, escape sequences, and
     format specifications. Ordinary characters and escape sequences
     are copied to stdout in the order of their appearance.
     See: Format Specifiers
          Escape Sequences
 
     The format is scanned from left to right. If a format
     specification is encountered, the value of the corresponding
     argument is converted and output according to that format
     specification. If there are more arguments than format
     specifications, the extra arguments are ignored. If there are more
     format specifications than arguments, the results are undefined.
 
     Return Value
 
     The printf function returns the number of characters printed, or a
     negative value in the case of an output error.
                                    -♦-