LABS(3)

NAME
2.19 `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.

SEE ALSO
labs is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.