home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_10_04 / 1004010a < prev    next >
Text File  |  1992-03-04  |  143b  |  8 lines

  1. /* abs function */
  2. #include <stdlib.h>
  3.  
  4. int (abs)(int i)
  5.     {    /* compute absolute value of int argument */
  6.     return ((i < 0) ? -i : i);
  7.     }
  8.