cc3
labs
[long integer absolute value]
SYNOPSIS
#include
<stdlib.h>
long labs(long
I);
DESCRIPTION
labs
returns |x|, 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.
COMPLIANCE
labs
is ANSI.
No supporting OS subroutine calls are required.
0