labs()

compute absolute value of long integer 

Function


SYNOPSIS

#include <stdlib.h>

long labs(long i);


DESCRIPTION

The labs() function computes the absolute value of its long integer operand, i. If the result cannot be represented, the behavior is undefined.


PARAMETERS

i 

Is a long integer.


RETURN VALUES

The absolute value of i.


CONFORMANCE

ANSI/ISO 9899-1990.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
abs(), fabs()


PTC MKS Toolkit 10.0 Documentation Build 6.