#include <stdlib.h>
long int labs(long int n);
The labs() function calculates the absolute value of its long integer argument n. The result is undefined when the argument is equal to LONG_MIN, the smallest available long integer (-2 147 483 648). The value LONG_MIN is defined in the limits.h header file.
The labs() function returns the absolute value of the long integer argument n.