absi.c 282 B

123456789101112131415
  1. /*
  2. (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /*
  6. Module: integer abs function
  7. Author: Ceriel J.H. Jacobs
  8. Version: $Id$
  9. */
  10. absi(i)
  11. {
  12. return i >= 0 ? i : -i;
  13. }