HP C/iX Library Reference Manual (30026-90004)
228 Chapter5
HP C/iX Library Function Descriptions
labs
labs
Computes the absolute value of a long integer argument.
Syntax
#include <stdlib.h>
long int labs (long int
j
);
Parameters
j
A long integer value whose absolute value is to be computed.
Return Values
x The absolute value of the long integer specified in
j
.
Description
The labs function returns the absolute value of the long integer value specified in
j
.
See Also
abs(), fabs(), ANSI C 4.10.6.3