absl.c 295 B

12345678910111213141516
  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: longint abs function
  7. Author: Ceriel J.H. Jacobs
  8. Version: $Id$
  9. */
  10. long
  11. absl(i)
  12. long i;
  13. {
  14. return i >= 0 ? i : -i;
  15. }