xref: /csrg-svn/lib/libc/stdlib/labs.3 (revision 48349)
1*48349Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California.
242130Sbostic.\" All rights reserved.
342130Sbostic.\"
442130Sbostic.\" %sccs.include.redist.man%
542130Sbostic.\"
6*48349Scael.\"     @(#)labs.3	5.2 (Berkeley) 04/19/91
742130Sbostic.\"
8*48349Scael.Dd
9*48349Scael.Dt LABS 3
10*48349Scael.Os
11*48349Scael.Sh NAME
12*48349Scael.Nm labs
13*48349Scael.Nd return the absolute value of a long integer
14*48349Scael.Sh SYNOPSIS
15*48349Scael.Fd #include <stdlib.h>
16*48349Scael.Ft long
17*48349Scael.Fn labs "long j"
18*48349Scael.Sh DESCRIPTION
19*48349ScaelThe
20*48349Scael.Fn labs
21*48349Scaelfunction
2242130Sbosticreturns the absolute value of the long integer
23*48349Scael.Ar j .
24*48349Scael.Sh SEE ALSO
25*48349Scael.Xr abs 3 ,
26*48349Scael.Xr floor 3 ,
27*48349Scael.Xr cabs 3 ,
28*48349Scael.Xr math 3
29*48349Scael.Sh STANDARDS
30*48349ScaelThe
31*48349Scael.Fn labs
32*48349Scaelfunction
33*48349Scaelconforms to
34*48349Scael.St -ansiC .
35*48349Scael.Sh BUGS
3642130SbosticThe absolute value of the most negative integer remains negative.
37