what belongs in <math.h> (was: volatile isn't necessary,)

Karl Heuer karl at haddock.ISC.COM
Sat Apr 9 04:19:19 AEST 1988


In article <10068 at tut.cis.ohio-state.edu> lvc at tut.cis.ohio-state.edu (Lawrence V. Cipriani) writes:
>I was shocked when I read that abs() was taken out of <math.h> ... abs() is a
>math function and <math.h> is where it belongs!

Taken out?  Was it ever *in* math.h?  I just checked two systems (one BSD, one
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 <math.h>.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint
$This is not my argument, but (my interpretation of) the implementors'.



More information about the Comp.lang.c mailing list