abs, labs, llabs, imaxabs - compute the absolute value of an integer
#include <stdlib.h>
int abs(int j);
long labs(long j);
long long llabs(long long j);
#include <inttypes.h>
intmax_t imaxabs(intmax_t j);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
Returns the absolute value of the integer argument, of the appropriate integer type for the function.