Content-type: text/html Man page of imaxabs

imaxabs

Section: Standard C Library Functions (3C)
Updated: 1 Nov 2003
Index Return to Main Contents
 

NAME

imaxabs - return absolute value  

SYNOPSIS

#include <inttypes.h>

intmax_t imaxabs(intmax_t j);  

DESCRIPTION

The imaxabs() function computes the absolute value of an integer j. If the result cannot be represented, the behavior is undefined.  

RETURN VALUES

The imaxabs() function returns the absolute value.  

ERRORS

No errors are defined.  

USAGE

The absolute value of the most negative number cannot be represented in two's complement.  

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityStandard
MT-LevelMT-Safe

 

SEE ALSO

imaxdiv(3C), attributes(5), standards(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
ERRORS
USAGE
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:37:19 GMT, October 02, 2010