C in a Nutshell (In a Nutshell (OReilly))
Gives the absolute value of a long integer #include <stdlib.h> long labs ( long n );
The parameter and the return value of labs( ) are long integers. Otherwise, labs( ) works the same as the int function abs( ). Example
See the example for abs( ) in this chapter. See Also
abs( ), labs( ), imaxabs( ) |