diff options
Diffstat (limited to 'src/lib/libc/stdlib/abs.3')
-rw-r--r-- | src/lib/libc/stdlib/abs.3 | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/src/lib/libc/stdlib/abs.3 b/src/lib/libc/stdlib/abs.3 index 4748d89e77..420bdf6fdf 100644 --- a/src/lib/libc/stdlib/abs.3 +++ b/src/lib/libc/stdlib/abs.3 | |||
@@ -13,11 +13,7 @@ | |||
13 | .\" 2. Redistributions in binary form must reproduce the above copyright | 13 | .\" 2. Redistributions in binary form must reproduce the above copyright |
14 | .\" notice, this list of conditions and the following disclaimer in the | 14 | .\" notice, this list of conditions and the following disclaimer in the |
15 | .\" documentation and/or other materials provided with the distribution. | 15 | .\" documentation and/or other materials provided with the distribution. |
16 | .\" 3. All advertising materials mentioning features or use of this software | 16 | .\" 3. Neither the name of the University nor the names of its contributors |
17 | .\" must display the following acknowledgement: | ||
18 | .\" This product includes software developed by the University of | ||
19 | .\" California, Berkeley and its contributors. | ||
20 | .\" 4. Neither the name of the University nor the names of its contributors | ||
21 | .\" may be used to endorse or promote products derived from this software | 17 | .\" may be used to endorse or promote products derived from this software |
22 | .\" without specific prior written permission. | 18 | .\" without specific prior written permission. |
23 | .\" | 19 | .\" |
@@ -33,42 +29,42 @@ | |||
33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
34 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
35 | .\" | 31 | .\" |
36 | .\" from: @(#)abs.3 6.4 (Berkeley) 6/29/91 | 32 | .\" $OpenBSD: abs.3,v 1.11 2013/07/17 05:42:11 schwarze Exp $ |
37 | .\" $Id: abs.3,v 1.1.1.1 1995/10/18 08:42:16 deraadt Exp $ | ||
38 | .\" | 33 | .\" |
39 | .Dd June 29, 1991 | 34 | .Dd $Mdocdate: July 17 2013 $ |
40 | .Dt ABS 3 | 35 | .Dt ABS 3 |
41 | .Os | 36 | .Os |
42 | .Sh NAME | 37 | .Sh NAME |
43 | .Nm abs | 38 | .Nm abs |
44 | .Nd integer absolute value function | 39 | .Nd integer absolute value function |
45 | .Sh SYNOPSIS | 40 | .Sh SYNOPSIS |
46 | .Fd #include <stdlib.h> | 41 | .In stdlib.h |
47 | .Ft int | 42 | .Ft int |
48 | .Fn abs "int j" | 43 | .Fn abs "int j" |
49 | .Sh DESCRIPTION | 44 | .Sh DESCRIPTION |
50 | The | 45 | The |
51 | .Fn abs | 46 | .Fn abs |
52 | function | 47 | function computes the absolute value of the integer |
53 | computes | 48 | .Fa j . |
54 | the absolute value of the integer | ||
55 | .Ar j . | ||
56 | .Sh RETURN VALUES | 49 | .Sh RETURN VALUES |
57 | The | 50 | The |
58 | .Fn abs | 51 | .Fn abs |
59 | function | 52 | function returns the absolute value. |
60 | returns | ||
61 | the absolute value. | ||
62 | .Sh SEE ALSO | 53 | .Sh SEE ALSO |
63 | .Xr floor 3 , | ||
64 | .Xr labs 3 , | ||
65 | .Xr cabs 3 , | 54 | .Xr cabs 3 , |
55 | .Xr floor 3 , | ||
66 | .Xr hypot 3 , | 56 | .Xr hypot 3 , |
67 | .Xr math 3 | 57 | .Xr imaxabs 3 , |
58 | .Xr labs 3 | ||
68 | .Sh STANDARDS | 59 | .Sh STANDARDS |
69 | The | 60 | The |
70 | .Fn abs | 61 | .Fn abs |
71 | function conforms to | 62 | function conforms to |
72 | .St -ansiC . | 63 | .St -ansiC . |
64 | .Sh HISTORY | ||
65 | The | ||
66 | .Fn abs | ||
67 | function first appeared in | ||
68 | .At v6 . | ||
73 | .Sh BUGS | 69 | .Sh BUGS |
74 | The absolute value of the most negative integer remains negative. | 70 | The absolute value of the most negative integer remains negative. |