...
The following table summarizes C99-compliant conversion specifiers along with the flag characters (the apostrophe ('
), -
, +
, the space character, and #
in columns 2, through 5) and length modifiers (h
, hh
, l
, ll
, j
, z
, t
, and L
in columns 6 through 13) valid for each specification, and the type of the expected argument. Valid and meaningful combinations of a conversion specification, flag character, and length modifier is denoted by the symbol in the corresponding cell or by the name of the type argument effected by the length modifier. Valid combinations that have no effect are denoted by N/E. Using a combination of a conversion specification, flag character, and length modifier denoted by the symbol or a specification not listed in the table, or an argument of an unexpected type may result in undefined behavior. See undefined behavior 145, 149, 150, 153, and 154 in Annex J of C99.
Conversion | | |
|
|
|
|
|
|
|
|
|
|
| Argument |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
| | | | | | | |
| signed integer |
|
|
|
|
|
| | | | | | | |
| unsigned integer |
|
|
|
|
|
| | | | | | | |
| unsigned integer |
|
|
|
|
|
| | | | | | | |
| unsigned integer |
|
|
|
|
|
| | | | | | | |
| unsigned integer |
|
|
|
|
|
|
|
| N/E | N/E |
|
|
| | |
|
|
|
|
|
|
|
| N/E | N/E |
|
|
| | |
|
|
|
|
|
|
|
| N/E | N/E |
|
|
| | |
|
|
|
|
|
|
|
| N/E | N/E |
|
|
| | |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
|
|
|
| NTWS |
|
|
|
|
| NTBS or NTWS |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
| | | | | | | |
| pointer to integer |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| NTWS |
|
|
|
|
|
|
|
|
|
|
|
|
|
| none |
...