Article View: gnu.gcc.help
Article #53109printf()
From: Konrad Hinsen
Date: Thu, 05 Mar 1992 19:21
Date: Thu, 05 Mar 1992 19:21
12 lines
1211 bytes
1211 bytes
If my knowledge of the ANSI specifications is correct, printf() and its relatives should produce +Inf, -Inf or NaN for the respective special floating-point bit patterns. The GNU library (I am using patchlevel 75 on the Atari ST with GNU-C 1.40) interprets these bit patterns as normal floating point values, giving e.g. 1.79769e308 instead of +Inf for HUGE_VAL. Since I have a program that relies on detecting Inf and NaN from printf() output, I would like to change the GNU printf(). Has anyone already done that and could give some advice? Konrad Hinsen (konrad@thphys.physik.rwth-aachen.de or konrad_hinsen@ac2.maus.de)
Technical Details
Message-ID:
<A17865@AC2.maus.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!jvnc.net!darwin.sura.net!Sirius.dfn.de!zrz.tu-berlin.de!cs.tu-berlin.de!news.netmbx.de!unido!uniol!hb.maus.de!ac2.maus.de!Konrad_HinsenShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,30245945e53a5762,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-03-07 07:15:00 PST Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!jvnc.net!darwin.sura.net!Sirius.dfn.de!zrz.tu-berlin.de!cs.tu-berlin.de!news.netmbx.de!unido!uniol!hb.maus.de!ac2.maus.de!Konrad_Hinsen From: Konrad_Hinsen@ac2.maus.de (Konrad Hinsen) Newsgroups: gnu.gcc.help Subject: printf() Message-ID: <A17865@AC2.maus.de> Date: 5 Mar 92 19:21:00 GMT Organization: MausNet Lines: 12 X-Gateway: MausGate/News 1.03