🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5679

Problem with BC++ and non-prototyped functions

#5679
From: Greg Montgomery
Date: Tue, 09 Apr 1991 01:24
15 lines
1297 bytes
I'm having a little problem with BC++ and functions that I didn't use
the include files. For instance, I noticed using the fabs() function
would actually increase the variable I was getting the abs of by 90
until I added a #include <math.h> in the top of the .C file.
Why would this happen? I can't figure out why having a declaration (I
think that's the right word??) would affect how the function actually
works. I've noticed this a couple times tonight. I think the same thing
happened with atof(). Any ideas on this?? Is this a normal C happening
or a bug that needs to be reported to Borland?


----
Greg Montgomery | Montgomery Consultants, Inc. | Atlanta, Georgia, U.S.A
Internet: greg@turbo.atl.ga.us                 | Home of the '96
UUCP: {rutgers,ogcise,gatech}!emory!turbo!greg | Olympics!
Technical Details
Message-ID: <Ze54Z1w164w@turbo.atl.ga.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!emory!wa4mei!turbo!greg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!emory!wa4mei!turbo!greg
From: greg@turbo.atl.ga.us (Greg Montgomery)
Newsgroups: comp.os.msdos.programmer
Subject: Problem with BC++ and non-prototyped functions
Message-ID: <Ze54Z1w164w@turbo.atl.ga.us>
Date: 9 Apr 91 01:24:10 GMT
Reply-To: greg@turbo.atl.ga.us
Distribution: na
Organization: Montgomery Consultants, Inc.
Lines: 15