...
Conversion Specifier Character | ' XSI
| - + SPACE
| #
| 0
|
h
|
hh
|
l
|
ll
|
j
|
z
|
t
|
L
| Argument Type |
---|
d , i
| | | | | short
| signed char
| long
| long long
| intmax_t
| size_t
| ptrdiff_t
| | Signed integer |
o
| | | | | unsigned short
| unsigned char
| unsigned long
| unsigned long long
| uintmax_t
| size_t
| ptrdiff_t
| | Unsigned integer |
u
| | | | | unsigned short
| unsigned char
| unsigned long
| unsigned long long
| uintmax_t
| size_t
| ptrdiff_t
| | Unsigned integer |
x , X
| | | | | unsigned short
| unsigned char
| unsigned long
| unsigned long long
| uintmax_t
| size_t
| ptrdiff_t
| | Unsigned integer |
f , F
| | | | | | | N/E | N/E | | | | long double
| double or long double
|
e , E
| | | | | | | N/E | N/E | | | | long double
| double or long double
|
g , G
| | | | | | | N/E | N/E | | | | long double
| double or long double
|
a , A
| | | | | | | N/E | N/E | | | | long double
| double or long double
|
c
| | | | | | | wint_t
| | | | | | int or wint_t
|
s
| | | | | | | NTWS | | | | | | NTBS or NTWS |
p
| | | | | | | | | | | | | void*
|
n
| | | | | short*
| char*
| long*
| long long*
| intmax_t*
| size_t*
| ptrdiff_t*
| | Pointer to integer |
C XSI
| | | | | | | | | | | | | wint_t
|
S XSI
| | | | | | | | | | | | | NTWS |
%
| |
| | | | | | | | | | | None |
SPACE: The space (" "
) character
N/E: No effect
NTBS: char*
argument pointing to a null-terminated character string
NTWS: wchar_t*
argument pointing to a null-terminated wide character string
XSI: ISO/IEC 9945-2003 XSI extension
...