xref: /csrg-svn/lib/libc/stdlib/labs.3 (revision 50306)
148349Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California.
242130Sbostic.\" All rights reserved.
342130Sbostic.\"
4*50306Sbostic.\" This code is derived from software contributed to Berkeley by
5*50306Sbostic.\" the American National Standards Committee X3, on Information
6*50306Sbostic.\" Processing Systems.
7*50306Sbostic.\"
842130Sbostic.\" %sccs.include.redist.man%
942130Sbostic.\"
10*50306Sbostic.\"     @(#)labs.3	5.3 (Berkeley) 06/29/91
1142130Sbostic.\"
1248349Scael.Dd
1348349Scael.Dt LABS 3
1448349Scael.Os
1548349Scael.Sh NAME
1648349Scael.Nm labs
1748349Scael.Nd return the absolute value of a long integer
1848349Scael.Sh SYNOPSIS
1948349Scael.Fd #include <stdlib.h>
2048349Scael.Ft long
2148349Scael.Fn labs "long j"
2248349Scael.Sh DESCRIPTION
2348349ScaelThe
2448349Scael.Fn labs
2548349Scaelfunction
2642130Sbosticreturns the absolute value of the long integer
2748349Scael.Ar j .
2848349Scael.Sh SEE ALSO
2948349Scael.Xr abs 3 ,
3048349Scael.Xr floor 3 ,
3148349Scael.Xr cabs 3 ,
3248349Scael.Xr math 3
3348349Scael.Sh STANDARDS
3448349ScaelThe
3548349Scael.Fn labs
3648349Scaelfunction
3748349Scaelconforms to
3848349Scael.St -ansiC .
3948349Scael.Sh BUGS
4042130SbosticThe absolute value of the most negative integer remains negative.
41