abs(3c) opensolaris man page | unix.com

Man Page: abs

Operating Environment: opensolaris

Section: 3c

abs(3C) 						   Standard C Library Functions 						   abs(3C)

NAME
abs, labs, llabs - return absolute value of integer
SYNOPSIS
#include <stdlib.h> int abs(int val); long labs(long lval); long long llabs(long long llval);
DESCRIPTION
The abs() function returns the absolute value of its int operand. The labs() function returns the absolute value of its long operand. The llabs() function returns the absolute value of its long long operand.
USAGE
In 2's-complement representation, the absolute value of the largest magnitude negative integral value is undefined.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+
SEE ALSO
attributes(5), standards(5) SunOS 5.11 24 Jul 2002 abs(3C)
Related Man Pages
abs(3c) - opensolaris
labs(3c) - opensolaris
labs(3) - redhat
llabs(3) - redhat
abs(3) - redhat
Similar Topics in the Unix Linux Community
String extraction from user input - sh
Absolute value
Getting absolute value ksh
Prepping for the RHEL Sysadmin &amp; Cert'd Eng. exams
File Path in Mac OS