Path: utzoo!mnetor!uunet!husc6!tut.cis.ohio-state.edu!lvc From: lvc@tut.cis.ohio-state.edu (Lawrence V. Cipriani) Newsgroups: comp.lang.c Subject: Re: what belongs in (was: volatile isn't necessary,) Message-ID: <10171@tut.cis.ohio-state.edu> Date: 9 Apr 88 03:19:53 GMT References: <7794@alice.UUCP> <10068@tut.cis.ohio-state.edu> <3377@haddock.ISC.COM> Organization: Ohio State Computer & Info Science Lines: 24 Summary: abs() was neven in In article <3377@haddock.ISC.COM>, karl@haddock.ISC.COM (Karl Heuer) writes: > In article <10068@tut.cis.ohio-state.edu> lvc@tut.cis.ohio-state.edu (Lawrence V. Cipriani) writes: > >I was shocked when I read that abs() was taken out of ... abs() is a > >math function and is where it belongs! > > Taken out? Was it ever *in* math.h? I just checked two systems (one BSD, one Thats what the rationale said, but the rational is wrong, see 4.10.6. If it was in then it should have stayed there, vendors stupid compilers notwithstanding. I don't use so I didn't know any better when I read 4.10.6. > USGish), and neither declares the abs() function in any header. (Why should > they? The default declaration suffices.$) Neither one puts the code in > libm.a, either. I don't think it's clear that it "belongs" in . What default declaration suffices for what? The argument types need to be declared with a function prototype. I could live without abs() being in as long as it was in *some* header files. -- Larry Cipriani, AT&T Network Systems and Ohio State University Domain: lvc@tut.cis.ohio-state.edu Path: ...!cbosgd!osu-cis!tut.cis.ohio-state.edu!lvc (weird but right)