| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
| 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: | <NsLDd.54447$nP1 DOT 27785 AT twister DOT socal DOT rr DOT com> |
| 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 <sam124 AT operamail DOT com> 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 <stdio.h> 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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |