/************************************************************* * File: lib/abs.c * Purpose: Return the absolute value of an int. * Author: Phil Bunce (pjb@carmel.com) * Revision History: * 970907 Start of revision history */ int abs(x) int x; { if (x<0) return(0-x); return(x); }