1*61180Sbostic.\" Copyright (c) 1990, 1991, 1993 2*61180Sbostic.\" The Regents of the University of California. All rights reserved. 342130Sbostic.\" 450306Sbostic.\" This code is derived from software contributed to Berkeley by 550306Sbostic.\" the American National Standards Committee X3, on Information 650306Sbostic.\" Processing Systems. 750306Sbostic.\" 842130Sbostic.\" %sccs.include.redist.man% 942130Sbostic.\" 10*61180Sbostic.\" @(#)labs.3 8.1 (Berkeley) 06/04/93 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