LABS(DOS) XENIX System V LABS(DOS)
Name
labs - Returns the absolute value of a long integer.
Syntax
#include <stdlib.h>
long labs (n);
long n;
Description
The labs function produces the absolute value of its long
integer argument n.
Return Value
labs returns the absolute value of its argument. There is
no error return.
See Also
abs(DOS), fabs(DOS), hypot(S)
Example
#include <stdlib.h>
long x, y;
x = -41567L; y = labs (x); /* y = 41567L */
Notes
This call must be compiled with the -dos flag.
Page 1 (printed 8/7/87)