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 Precision: Character Types
                                             Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     Character types are c and s.
 
     See: printf Type Characters
 
     Type     Effect
 
     c        The precision value has no effect; the character is
              printed.
 
     s        The precision value specifies the maximum number of
              characters printed. Characters in excess of the precision
              value are not printed. By default, characters are printed
              until a null character is encountered.
                                    -♦-