| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| Message-ID: | <41E08DBF.AFC9C49A@yahoo.com> |
| From: | CBFalconer <cbfalconer AT yahoo DOT com> |
| Organization: | Ched Research |
| X-Mailer: | Mozilla 4.75 [en] (Win98; U) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Strange problems with printf() |
| 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> <6_TDd.54474$nP1 DOT 27946 AT twister DOT socal DOT rr DOT com> <01c4f5be$Blat.v2.2.2$9e630f60 AT zahav DOT net DOT il> <MKYDd.54517$nP1 DOT 10666 AT twister DOT socal DOT rr DOT com> |
| Lines: | 24 |
| Date: | Sun, 09 Jan 2005 02:05:51 GMT |
| NNTP-Posting-Host: | 12.76.131.47 |
| X-Complaints-To: | abuse AT worldnet DOT att DOT net |
| X-Trace: | bgtnsc05-news.ops.worldnet.att.net 1105236351 12.76.131.47 (Sun, 09 Jan 2005 02:05:51 GMT) |
| NNTP-Posting-Date: | Sun, 09 Jan 2005 02:05:51 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Samuel Lauber wrote:
>
... snip ...
>
> Test code (slightly modified from the one in the orig. post, but
> it was the code that first revealed it):
>
> int printf(char *, ...);
>
> int main(void)
> {
> printf("%f\n", 5.86);
> return 0;
> }
And what happens when you replace that snarky printf declaration
with the correct "#include <stdio.h>"?
--
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |