Article View: gnu.gcc.help
Article #42102printf(), Inf/NaN & HP-UX
From: Kirk Van Katwyk
Date: Tue, 23 Jan 1996 00:00
Date: Tue, 23 Jan 1996 00:00
25 lines
1171 bytes
1171 bytes
[ Article crossposted from comp.lang.c,comp.sys.hp.hpux,gnu.gcc.help ]
[ Author was ]
[ Posted on 23 Jan 1996 18:49:27 GMT ]
Is there a way to print out "Inf" and "NaN" on HP-UX?
We compiled the code below on SunOS using GNU's gcc and the
output is
f = Inf
f = NaN
On HP-UX, the output is
f = ++.000000
f = ?.000000
I know that this is not standardized, but is there a gcc option
that we can set to print out "Inf" and "NaN" on HP-UX?
Kirk.
====================================================================
Kirk Van Katwyk Integration Engineering Laboratory
kvankatw@engr.ucdavis.edu Mech & Aero Engineering Dept
http://www.engr.ucdavis.edu/~kvankatw/ Univ of Calif, Davis
Technical Details
Message-ID:
<4e3aqn$j3v@mark.ucdavis.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,12a8c6dca1d33505,start X-Google-Attributes: gid11318c,public From: kvankatw@cheese.engr.ucdavis.edu (Kirk Van Katwyk) Subject: printf(), Inf/NaN & HP-UX Date: 1996/01/23 Message-ID: <4e3aqn$j3v@mark.ucdavis.edu> X-Deja-AN: 136147336 organization: College of Engineering - University of California - Davis newsgroups: gnu.gcc.help