On Thu, 05 Apr 2007 18:30:06 -0600, Eric Blake wrote: >However, he also raised the question as to whether "%010f" and "%010a" are >supposed to output " inf" (glibc does this) or "0000000inf" (FreeBSD >does this). Personally, I think that FreeBSD has a bug in this regard,
C99+TC1+TC2: 7.19.6.1 The fprintf function Paragraph 6, discussion on the '0' flag: ... leading zeros ... are used to pad to the field width rather than performing space padding, except when converting an infinity or NaN. FreeBSD has a bug. --- Fred J. Tydeman Tydeman Consulting [EMAIL PROTECTED] Testing, numerics, programming +1 (775) 358-9748 Vice-chair of J11 (ANSI "C") Sample C99+FPCE tests: http://www.tybor.com Savers sleep well, investors eat well, spenders work forever.