#include <stdlib.h>
long labs(long i);
labs() computes the absolute value of i.
The absolute value of i, i.e., i if i is positive and -i if i is negative. If i is -2,147,483,648, this value is returned and errno is set to ERANGE.
abs()