1LABS(P)                    POSIX Programmer's Manual                   LABS(P)
2
3
4

NAME

6       labs, llabs - return a long integer absolute value
7

SYNOPSIS

9       #include <stdlib.h>
10
11       long labs(long i);
12       long long llabs(long long i);
13
14

DESCRIPTION

16       The  labs() function shall compute the absolute value of the long inte‐
17       ger operand i. The llabs() function shall compute the absolute value of
18       the  long  long integer operand i. If the result cannot be represented,
19       the behavior is undefined.
20

RETURN VALUE

22       The labs() function shall return the absolute value of the long integer
23       operand.  The  labs()  function  shall return the absolute value of the
24       long long integer operand.
25

ERRORS

27       No errors are defined.
28
29       The following sections are informative.
30

EXAMPLES

32       None.
33

APPLICATION USAGE

35       None.
36

RATIONALE

38       None.
39

FUTURE DIRECTIONS

41       None.
42

SEE ALSO

44       abs() , the Base Definitions volume of IEEE Std 1003.1-2001, <stdlib.h>
45
47       Portions of this text are reprinted and reproduced in  electronic  form
48       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
49       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
50       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
51       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
52       event of any discrepancy between this version and the original IEEE and
53       The Open Group Standard, the original IEEE and The Open Group  Standard
54       is  the  referee document. The original Standard can be obtained online
55       at http://www.opengroup.org/unix/online.html .
56
57
58
59IEEE/The Open Group                  2003                              LABS(P)
Impressum