Query: labs
OS: opensolaris
Section: 3c
Links: opensolaris man pages all man pages forum categories
Format:Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
abs(3C) Standard C Library Functions abs(3C)NAMEabs, labs, llabs - return absolute value of integerSYNOPSIS#include <stdlib.h> int abs(int val); long labs(long lval); long long llabs(long long llval);DESCRIPTIONThe 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.USAGEIn 2's-complement representation, the absolute value of the largest magnitude negative integral value is undefined.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+SEE ALSOattributes(5), standards(5) SunOS 5.11 24 Jul 2002 abs(3C)