abs()

return absolute value of an integer 

Function


SYNOPSIS

#include <stdlib.h>

int abs(int val);


DESCRIPTION

The abs() function returns the absolute value of its integer operand, val. If the result cannot be represented, the behavior is undefined.


PARAMETERS

val 

Is an integer.


RETURN VALUES

The abs() function returns the absolute value of val.


CONFORMANCE

ANSI/ISO 9899-1990.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

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


SEE ALSO

Functions:
fabs(), labs()


MKS Toolkit 9.2 Documentation Build 16.