I am trying to understand the following section:
l (ell)
Specifies that a following
d
,i
,o
,u
,x
, orX
conversion specifier applies to along
orunsigned long
argument; that a followingn
conversion specifier applies to a pointer to along
argument; that a followingc
conversion specifier applies to awint_t
argument; that a followings
conversion specifier applies to a pointer to awchar_t
argument; or has no effect on a followinga
,A
,e
,E
,f
,F
,g
, orG
conversion specifier.
I can also see that this is consistent with cppreference:fprintf where "%f"
and "%lf"
are equivalent for printf()
family.
So is this answer erroneous ? Or does C99
makes it clear now that "%f"
is for float
, while "%lf"
is for double
for printf()
family functions ?