Article View: comp.std.c
Article #55extern double fabs(); standard conforming?
From: Robert Lupton the Good
Date: Tue, 03 Nov 1992 00:53
Date: Tue, 03 Nov 1992 00:53
28 lines
1146 bytes
1146 bytes
Is the following Standard Conforming?
#include <math.h>
extern double sin();
int
main()
{
return(0);
}
I'd have said yes (as the sin() merely says that I don't know about its
arguments), but it is rejected by the IBM c89 compiler%
Robert
---------
% their math.h defines sin as
#define sin(x) __sin(x)
and the preprocessor complains.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Robert Lupton rhl@astro.princeton.edu
(609) 683 8252 (Home) (609) 258 3811 (Work)
Technical Details
Message-ID:
<1992Nov3.005333.17727@Princeton.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!ucsbcsl!mustang.mst6.lanl.gov!data.nas.nasa.gov!ames!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!princeton!grendel!rhlShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!ucsbcsl!mustang.mst6.lanl.gov!data.nas.nasa.gov!ames!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!princeton!grendel!rhl From: rhl@grendel.Princeton.EDU (Robert Lupton the Good) Newsgroups: comp.std.c Subject: extern double fabs(); standard conforming? Message-ID: <1992Nov3.005333.17727@Princeton.EDU> Date: 3 Nov 92 00:53:33 GMT Sender: news@Princeton.EDU (USENET News System) Organization: Princeton University Lines: 28 Originator: news@nimaster Nntp-Posting-Host: grendel.princeton.edu