labs()

Computes long integer absolute value.

  #include <stdlib.h>
  
  long int labs(long int j);    
Parameter

j

The value to be computed.

Remarks

This function returns the absolute value of its argument as a value of type long int.