Calculates the absolute value of an integer.
The labs and llabs functions return the absolute value of the argument. There is no error return.
Because the range of negative integers that can be represented by using an integral type is larger than the range of positive integers that can be represented by using that type, it's possible to supply an argument to labs or llabs that can’t be converted. If the absolute value of the argument cannot be represented by the return type, the labs and llabs functions return the argument value unchanged. Specifically, labs(LONG_MIN) returns LONG_MIN, and llabs(LLONG_MIN) returns LLONG_MIN. This means that the labs and llabs functions cannot be used to guarantee a positive value.
End Microsoft Specific