~ubuntu-branches/ubuntu/precise/manpages-posix/precise

1 by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages.
1
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved 
2 by Francesco Paolo Lovergine
* Alligned to linux main manpages edition.
2
.TH "LABS" P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
1 by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages.
3
.\" labs 
4
.SH NAME
5
labs, llabs \- return a long integer absolute value
6
.SH SYNOPSIS
7
.LP
8
\fB#include <stdlib.h>
9
.br
10
.sp
11
long labs(long\fP \fIi\fP\fB);
12
.br
13
long long llabs(long long\fP \fIi\fP\fB);
14
.br
15
\fP
16
.SH DESCRIPTION
17
.LP
18
The \fIlabs\fP() function shall compute the absolute value of the
19
\fBlong\fP integer operand \fIi\fP. The \fIllabs\fP()
20
function shall compute the absolute value of the \fBlong long\fP integer
21
operand \fIi\fP. If the result cannot be represented,
22
the behavior is undefined.
23
.SH RETURN VALUE
24
.LP
25
The \fIlabs\fP() function shall return the absolute value of the \fBlong\fP
26
integer operand. The \fIlabs\fP() function shall
27
return the absolute value of the \fBlong long\fP integer operand.
28
.SH ERRORS
29
.LP
30
No errors are defined.
31
.LP
32
\fIThe following sections are informative.\fP
33
.SH EXAMPLES
34
.LP
35
None.
36
.SH APPLICATION USAGE
37
.LP
38
None.
39
.SH RATIONALE
40
.LP
41
None.
42
.SH FUTURE DIRECTIONS
43
.LP
44
None.
45
.SH SEE ALSO
46
.LP
47
\fIabs\fP() , the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
48
\fI<stdlib.h>\fP
49
.SH COPYRIGHT
50
Portions of this text are reprinted and reproduced in electronic form
51
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
52
-- Portable Operating System Interface (POSIX), The Open Group Base
53
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
54
Electrical and Electronics Engineers, Inc and The Open Group. In the
55
event of any discrepancy between this version and the original IEEE and
56
The Open Group Standard, the original IEEE and The Open Group Standard
57
is the referee document. The original Standard can be obtained online at
58
http://www.opengroup.org/unix/online.html .