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 Format Specification
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
A format specification has the following form:
%[flags][width][.precision][prefix]type
Each optional field of the format specification is a single
character or a number signifying a format option. These fields
control width and other aspects of formatting.
See: ◄Flags► ◄Width► ◄Precision► ◄Prefix►
The type character, which appears after the last optional format
field, determines whether the associated argument is interpreted
as a character, string, or number.
See: ◄Type►
-♦-