[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: weird printf() behavior
From: |
Andreas Schwab |
Subject: |
Re: weird printf() behavior |
Date: |
Wed, 06 Aug 2003 10:34:49 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) |
Kai-Min Sung <address@hidden> writes:
|> Hi,
|> I'm not sure if this is a valid bug or just a known quirk, but I
|> wrote the following test code and saw some rather strange output:
|>
|> -- begin foo.c --
|> #include <stdio.h>
|>
|> int main()
|> {
|> float f = 1.1;
|>
|> printf("%x, %f\n", f, f);
This is just broken. Try -Wall.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."