xref: /original-bsd/lib/libc/stdlib/labs.3 (revision ba762ddc)
1.\" Copyright (c) 1990, 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)labs.3	5.2 (Berkeley) 04/19/91
7.\"
8.Dd
9.Dt LABS 3
10.Os
11.Sh NAME
12.Nm labs
13.Nd return the absolute value of a long integer
14.Sh SYNOPSIS
15.Fd #include <stdlib.h>
16.Ft long
17.Fn labs "long j"
18.Sh DESCRIPTION
19The
20.Fn labs
21function
22returns the absolute value of the long integer
23.Ar j .
24.Sh SEE ALSO
25.Xr abs 3 ,
26.Xr floor 3 ,
27.Xr cabs 3 ,
28.Xr math 3
29.Sh STANDARDS
30The
31.Fn labs
32function
33conforms to
34.St -ansiC .
35.Sh BUGS
36The absolute value of the most negative integer remains negative.
37