X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Strange problems with printf() Date: 8 Jan 2005 19:27:19 GMT Lines: 21 Message-ID: <34aqgnF46snihU1@news.dfncis.de> References: X-Trace: news.dfncis.de e4LtefMmNdATdTqQyPQe8QdnTC1ENTVYh3Bd8Z66MSuixEfV28y1dSX5B0 X-Orig-Path: not-for-mail To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Samuel Lauber wrote: > int printf(char *, ...); A side note: it's quite a bad idea to have prototypes of standard library functions (like printf) explicitly appear in your source code --- use #include instead. > int main(void) > { > printf("%f\n", 1); > } > Compile it, and it would say `Unnormal'. Is this a bug? It might be if it still did that after you replaced '1' with an actual double, like 1.0 or 1.23456e78 -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.