🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #63

Re: extern double fabs(); standard conforming?

#63
From: Larry Jones
Date: Tue, 03 Nov 1992 21:31
16 lines
929 bytes
In article <1992Nov3.005333.17727@Princeton.EDU>, rhl@grendel.Princeton.EDU (Robert Lupton the Good) writes:
> Is the following Standard Conforming?
> 
> #include <math.h>
> extern double sin();

No.  4.1.6 Use of Library Functions:

	Any function declared in a header may be additionally
	implemented as a macro defined in the header, so a library
	function should not be declared explicitly if its header is
	included.
----
Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH  45150-2789  513-576-2070
larry.jones@sdrc.com  or  ...uunet!sdrc!larry.jones
I'm not a vegetarian!  I'm a dessertarian. -- Calvin
Technical Details
Message-ID: <2208@sdrc.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!sdrc!thor!scjones
References: <1992Nov3.005333.17727@Princeton.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sdrc!thor!scjones
From: scjones@thor.sdrc.com (Larry Jones)
Newsgroups: comp.std.c
Subject: Re: extern double fabs(); standard conforming?
Message-ID: <2208@sdrc.COM>
Date: 3 Nov 92 21:31:53 GMT
References: <1992Nov3.005333.17727@Princeton.EDU>
Sender: news@sdrc.COM
Lines: 16