labs Function (Builtin)

math.h, stdlib.h, timath.h

long labs (long x);

Absolute value of a long integer number.

labs returns the absolute value of (long) integer argument x.

Note: labs is a built-in function in the GCC compiler itself, and it compiles to open code instead of a function call.


See also: abs, fabs