labs()

Syntax
  #include <stdlib.h>


  
  long labs(long i);

  
Description

labs() computes the absolute value of i.

Return

The absolute value of i ( i if i is positive and -i if i is negative). If i is -2,147,483,648, labs() returns this value and sets errno to ERANGE.

See also

abs()