labs.c 253 B

12345678910111213
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. #include <stdlib.h>
  7. long
  8. labs(register long l)
  9. {
  10. return l >= 0 ? l : -l;
  11. }