xref: /netbsd-src/lib/libc/stdlib/qabs.3 (revision cac8e449158efc7261bebc8657cbb0125a2cfdde)
1*cac8e449Smatt.\"	$NetBSD: qabs.3,v 1.9 2008/08/04 21:29:27 matt Exp $
26dda330eSthorpej.\"
37681b92cSjtc.\" Copyright (c) 1990, 1991 The Regents of the University of California.
47681b92cSjtc.\" All rights reserved.
57681b92cSjtc.\"
67681b92cSjtc.\" This code is derived from software contributed to Berkeley by
77681b92cSjtc.\" the American National Standards Committee X3, on Information
87681b92cSjtc.\" Processing Systems.
97681b92cSjtc.\"
107681b92cSjtc.\" Redistribution and use in source and binary forms, with or without
117681b92cSjtc.\" modification, are permitted provided that the following conditions
127681b92cSjtc.\" are met:
137681b92cSjtc.\" 1. Redistributions of source code must retain the above copyright
147681b92cSjtc.\"    notice, this list of conditions and the following disclaimer.
157681b92cSjtc.\" 2. Redistributions in binary form must reproduce the above copyright
167681b92cSjtc.\"    notice, this list of conditions and the following disclaimer in the
177681b92cSjtc.\"    documentation and/or other materials provided with the distribution.
18eb7c1594Sagc.\" 3. Neither the name of the University nor the names of its contributors
197681b92cSjtc.\"    may be used to endorse or promote products derived from this software
207681b92cSjtc.\"    without specific prior written permission.
217681b92cSjtc.\"
227681b92cSjtc.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
237681b92cSjtc.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
247681b92cSjtc.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
257681b92cSjtc.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
267681b92cSjtc.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
277681b92cSjtc.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
287681b92cSjtc.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
297681b92cSjtc.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
307681b92cSjtc.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
317681b92cSjtc.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
327681b92cSjtc.\" SUCH DAMAGE.
337681b92cSjtc.\"
347681b92cSjtc.\"     from: @(#)labs.3	5.3 (Berkeley) 6/29/91
357681b92cSjtc.\"
367681b92cSjtc.Dd June 29, 1991
377681b92cSjtc.Dt QABS 3
387681b92cSjtc.Os
397681b92cSjtc.Sh NAME
407681b92cSjtc.Nm qabs
417681b92cSjtc.Nd return the absolute value of a quad integer
42312aca53Sperry.Sh LIBRARY
43312aca53Sperry.Lb libc
447681b92cSjtc.Sh SYNOPSIS
45472351e1Swiz.In stdlib.h
467681b92cSjtc.Ft quad_t
477681b92cSjtc.Fn qabs "quad_t j"
487681b92cSjtc.Sh DESCRIPTION
497681b92cSjtcThe
507681b92cSjtc.Fn qabs
517681b92cSjtcfunction
527681b92cSjtcreturns the absolute value of the quad integer
537681b92cSjtc.Ar j .
547681b92cSjtc.Sh SEE ALSO
557681b92cSjtc.Xr abs 3 ,
564e59d266Swiz.Xr cabs 3 ,
574e59d266Swiz.Xr floor 3 ,
58*cac8e449Smatt.Xr imaxabs 3 ,
597681b92cSjtc.Xr labs 3 ,
60e4d7c2e3Skleink.Xr llabs 3 ,
617681b92cSjtc.Xr math 3
627681b92cSjtc.Sh BUGS
637681b92cSjtcThe absolute value of the most negative integer remains negative.
64