delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | "Leon Heller" <leon_heller AT hotmail DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <NsLDd.54447$nP1 DOT 27785 AT twister DOT socal DOT rr DOT com> <01c4f56a$Blat.v2.2.2$ecce5460 AT zahav DOT net DOT il> |
Subject: | Re: Strange problems with printf() |
Date: | Sat, 8 Jan 2005 10:59:30 -0000 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 6.00.2900.2180 |
X-RFC2646: | Format=Flowed; Original |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2900.2180 |
Lines: | 26 |
Message-ID: | <41dfbd12$0$19160$cc9e4d1f@news-text.dial.pipex.com> |
NNTP-Posting-Host: | 81-178-248-186.dsl.pipex.com |
X-Trace: | 1105181970 news-text.dial.pipex.com 19160 81.178.248.186:1515 |
X-Complaints-To: | abuse AT uk DOT uu DOT net |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"Eli Zaretskii" <eliz AT gnu DOT org> wrote in message news:01c4f56a$Blat.v2.2.2$ecce5460 AT zahav DOT net DOT il... >> From: "Samuel Lauber" <sam124 AT operamail DOT com> >> Date: Sat, 08 Jan 2005 06:54:37 GMT >> >> int printf(char *, ...); >> int main(void) >> { >> printf("%f\n", 1); >> } >> >> Compile it, and it would say `Unnormal'. Is this a bug? > > A bug, yes, but in your program, not in the compiler or the library. > If you compile with the -Wall switch, which prints warnings for > dubious code, the compiler says: [deleted] I tried it and the program wouldn't run: executable too large. I then downloaded the latest file versions and it compiled OK, and output 0.00000, which seems logical. Leon
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |