libc.info: labs

Go forward to ldiv
Go backward to getenv
Go up to Stdlib
Go to the top op libc

`labs'--long integer absolute value

*Synopsis*
     #include <stdlib.h>
     long labs(long I);
   *Description*
`labs' returns the absolute value of I (also called the magnitude of
I).  That is, if I is negative, the result is the opposite of I, but if
I is nonnegative the result is I.
   The similar function `abs' uses and returns `int' rather than `long'
values.
*Returns*
The result is a nonnegative long integer.
*Portability*
`labs' is ANSI.
   No supporting OS subroutine calls are required.