User:Sbmeirow/Sandbox4

Top
Comparison of sprintf function syntax for various C language libraries.

The syntax for a format placeholder is

Parameter field
TBD

Flag field
Flags is an optional field. It can be none, one, multiple (in any order) of:
 * {| class="wikitable"

! Flag ! Short Description ! C Lang K&R ! Std C Lib Plauger ! GNU GCC ! Intel C++ ! Microsoft Visual C++ ! Watcom C/C++ ! IAR C/C++ ! Green Hills C/C++ ! Keil C/C++
 * (minus) || Left justify || Yes || Yes || || || ||
 * (plus) || Leading ' ' || Yes || Yes || || || ||
 * (space) || Leading ' ' || Yes || Yes || || || ||
 * (zero) || Leading ' ' || Yes || Yes || || || ||
 * (hash) || Alternate form || Yes || Yes || || || ||
 * }
 * Notes:
 * (minus) = Left justify.
 * (plus) = Leading ' ' for positive signed-numeric types.
 * (space) = Leading ' ' for positive signed-numeric types. Ignored if ' ' flag exists.
 * (zero) = Leading ' ' zeros.
 * (hash) = Alternate form.
 * (minus) = Left justify.
 * (plus) = Leading ' ' for positive signed-numeric types.
 * (space) = Leading ' ' for positive signed-numeric types. Ignored if ' ' flag exists.
 * (zero) = Leading ' ' zeros.
 * (hash) = Alternate form.

Width field
TBD

Precision field
TBD

Length field
TBD

Type field
TBD