1aa522acbSmillert.\" Copyright (c) 1990, 1991 The Regents of the University of California. 2aa522acbSmillert.\" All rights reserved. 3aa522acbSmillert.\" 4aa522acbSmillert.\" This code is derived from software contributed to Berkeley by 5aa522acbSmillert.\" the American National Standards Committee X3, on Information 6aa522acbSmillert.\" Processing Systems. 7aa522acbSmillert.\" 8aa522acbSmillert.\" Redistribution and use in source and binary forms, with or without 9aa522acbSmillert.\" modification, are permitted provided that the following conditions 10aa522acbSmillert.\" are met: 11aa522acbSmillert.\" 1. Redistributions of source code must retain the above copyright 12aa522acbSmillert.\" notice, this list of conditions and the following disclaimer. 13aa522acbSmillert.\" 2. Redistributions in binary form must reproduce the above copyright 14aa522acbSmillert.\" notice, this list of conditions and the following disclaimer in the 15aa522acbSmillert.\" documentation and/or other materials provided with the distribution. 16aa522acbSmillert.\" 3. Neither the name of the University nor the names of its contributors 17aa522acbSmillert.\" may be used to endorse or promote products derived from this software 18aa522acbSmillert.\" without specific prior written permission. 19aa522acbSmillert.\" 20aa522acbSmillert.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21aa522acbSmillert.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22aa522acbSmillert.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23aa522acbSmillert.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24aa522acbSmillert.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25aa522acbSmillert.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26aa522acbSmillert.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27aa522acbSmillert.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28aa522acbSmillert.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29aa522acbSmillert.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30aa522acbSmillert.\" SUCH DAMAGE. 31aa522acbSmillert.\" 32*467be130Sschwarze.\" $OpenBSD: imaxabs.3,v 1.8 2019/01/18 07:32:17 schwarze Exp $ 33aa522acbSmillert.\" 34*467be130Sschwarze.Dd $Mdocdate: January 18 2019 $ 35aa522acbSmillert.Dt IMAXABS 3 36aa522acbSmillert.Os 37aa522acbSmillert.Sh NAME 38aa522acbSmillert.Nm imaxabs 39aa522acbSmillert.Nd integer absolute value function 40aa522acbSmillert.Sh SYNOPSIS 4164d4e987Stedu.In inttypes.h 42*467be130Sschwarze.In stdint.h 43931b33edSsteven.Ft intmax_t 44931b33edSsteven.Fn imaxabs "intmax_t j" 45aa522acbSmillert.Sh DESCRIPTION 46aa522acbSmillertThe 47aa522acbSmillert.Fn imaxabs 48aa522acbSmillertfunction computes the absolute value of the intmax_t variable 49aa522acbSmillert.Fa j . 50aa522acbSmillert.Sh RETURN VALUES 51aa522acbSmillertThe 52aa522acbSmillert.Fn imaxabs 53aa522acbSmillertfunction returns the absolute value. 54aa522acbSmillert.Sh SEE ALSO 55aa522acbSmillert.Xr abs 3 , 56aa522acbSmillert.Xr cabs 3 , 57aa522acbSmillert.Xr floor 3 , 58aa522acbSmillert.Xr hypot 3 , 59c969519fSjmc.Xr labs 3 60aa522acbSmillert.Sh STANDARDS 61aa522acbSmillertThe 6284a4f138Smartynas.Fn imaxabs 63aa522acbSmillertfunction conforms to 641b0e3e11Sschwarze.St -isoC-99 . 65*467be130Sschwarze.Sh CAVEATS 66*467be130SschwarzeThe result of applying 67*467be130Sschwarze.Fn imaxabs 68*467be130Sschwarzeto 69*467be130Sschwarze.Dv INTMAX_MIN 70*467be130Sschwarzeis undefined. 71