abs, labs, llabs, imaxabs - compute the absolute value of an integer
Returns the absolute value of the integer argument, of the appropriate integer type for the function.
Trying to take the absolute value of the most negative integer is not defined.
For llabs() to be declared, it may be necessary to define _ISOC99_SOURCE or _ISOC9X_SOURCE (depending on the version of glibc) before including any standard headers.
This page is part of release 5.10 of the Linux
project. A description of the project, information about reporting bugs,
and the latest version of this page, can be found at