The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

labs - return a long integer absolute value

 SYNOPSIS



#include <stdlib.h>

long int labs(long int i);

 DESCRIPTION

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

 RETURN VALUE

The labs() function returns the absolute value of its long integer operand.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

abs(), <stdlib.h>.

DERIVATION

Derived from the ISO C standard.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]