ABS for longs and ints

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Oct 1 10:17:07 AEST 1989


In article <1381 at cipc1.Dayton.NCR.COM> gmaranca at cipc1.Dayton.NCR.COM (Gabriel Maranca) writes:
>Does anybody know why the abs math function is not type independent? Or has
>this been changed in ANSI "C"?

That's just the way it's always been.

>I use the following macro instead of the library function:

Feel free.  Note that if its argument has side effects, funny
behavior may occur.



More information about the Comp.lang.c mailing list