blob: 51399fce8f0eb4eb607fd3f289593a88879bad20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\" May be distributed under the GNU General Public License
.\" References consulted:
.\" Linux libc source code
.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\" 386BSD man pages
.\" Modified Mon Mar 29 22:43:34 1993, David Metcalfe
.\" Modified Sun Jun 6 23:28:55 1993, David Metcalfe
.\" Modified Sat Jul 24 19:04:14 1993, Rik Faith (faith@cs.unc.edu)
.TH LABS 3 "June 6, 1993" "GNU" "Linux Programmer's Manual"
.SH NAME
labs \- computes the absolute value of a long integer.
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
.sp
.BI "long int labs(long int " j );
.fi
.SH DESCRIPTION
The \fBlabs()\fP function computes the absolute value of the long integer
argument \fIj\fP.
.SH "RETURN VALUE"
Returns the absolute value of the long integer argument.
.SH "CONFORMING TO"
SVID 3, BSD 4.3, ISO 9899
.SH NOTES
Trying to take the absolute value of the most negative integer
is not defined.
.SH SEE ALSO
.BR abs "(3), " ceil "(3), " floor "(3), " fabs "(3), " rint (3)
|