labs
Returns the absolute value of its argument (function or macro)
#include <stdlib.h>
long int labs (
long int j);
The labs function or macro returns the absolute value of its argument. There is no error return.
The labs function or macro returns the absolute value of argument j.
#include <stdlib.h>
#include <stdio.h>
main ()
{
long x, y;
x = -50000L;
y = labs (x);
}