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 Flags
                                             Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The <flags> determine justification of output and control the
     printing of signs, blanks, decimal points, and octal and
     hexadecimal prefixes, as shown in the list below. More than one
     flag can appear in a format specification.
 
     Flag:                           See:
 
     Justification                   - (hyphen)
 
     Signs (+ and -)                 + (plus)
 
     Leading zeros                   0 (zero)
 
     Leading blanks                  ' ' (blank)
 
     Radix indicators (0x, etc.)     # (pound sign)
 
     Decimal points,                 # (pound sign)
     trailing zeros, etc.
                                    -♦-