Web lists-archives.com

Re: [Mingw-users] bizarre problem, need help from a mingw developer

On 07/03/16 21:44, mathog wrote:
> Is the "ISO-C redundancy effect" another name for the behavior described 
> above in section of the C99 standard?

Yes.  C99 says "%lf% is the same as "%f": the "l" modifier does nothing,
and is therefore redundant, so why does anyone use it?  It's just plain
pointless.  However, in Microsoft parlance, "%lf" is NOT the same as
"%f"; it is interpreted as being equivalent to "%Lf", which expects a
long double argument, NOT a double.  Since MinGW targets a Microsoft
platform, the current MinGW printf() implementation emulates the
Microsoft behaviour, (and MSVC is not C99, especially when linking with
the platform MSVCRT.DLL); thus, if you specify "%lf" format, you should
pass a long double argument, NOT a double.


Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

Attachment: signature.asc
Description: OpenPGP digital signature

Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe