diff options
Diffstat (limited to 'src/lib/libc/stdlib/labs.3')
-rw-r--r-- | src/lib/libc/stdlib/labs.3 | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/src/lib/libc/stdlib/labs.3 b/src/lib/libc/stdlib/labs.3 index 28e4d2053c..21c134fe5d 100644 --- a/src/lib/libc/stdlib/labs.3 +++ b/src/lib/libc/stdlib/labs.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,35 +29,41 @@ | |||
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: @(#)labs.3 5.3 (Berkeley) 6/29/91 | 32 | .\" $OpenBSD: labs.3,v 1.9 2007/05/31 19:19:31 jmc Exp $ |
37 | .\" $Id: labs.3,v 1.1.1.1 1995/10/18 08:42:17 deraadt Exp $ | ||
38 | .\" | 33 | .\" |
39 | .Dd June 29, 1991 | 34 | .Dd $Mdocdate: May 31 2007 $ |
40 | .Dt LABS 3 | 35 | .Dt LABS 3 |
41 | .Os | 36 | .Os |
42 | .Sh NAME | 37 | .Sh NAME |
43 | .Nm labs | 38 | .Nm labs, llabs |
44 | .Nd return the absolute value of a long integer | 39 | .Nd return the absolute value of a long integer |
45 | .Sh SYNOPSIS | 40 | .Sh SYNOPSIS |
46 | .Fd #include <stdlib.h> | 41 | .Fd #include <stdlib.h> |
47 | .Ft long | 42 | .Ft long |
48 | .Fn labs "long j" | 43 | .Fn labs "long i" |
44 | .Ft long long | ||
45 | .Fn llabs "long long j" | ||
49 | .Sh DESCRIPTION | 46 | .Sh DESCRIPTION |
50 | The | 47 | The |
51 | .Fn labs | 48 | .Fn labs |
52 | function | 49 | function returns the absolute value of the long integer |
53 | returns the absolute value of the long integer | 50 | .Fa i . |
54 | .Ar j . | 51 | The |
52 | .Fn llabs | ||
53 | function returns the absolute value of the long long integer | ||
54 | .Fa j . | ||
55 | .Sh SEE ALSO | 55 | .Sh SEE ALSO |
56 | .Xr abs 3 , | 56 | .Xr abs 3 , |
57 | .Xr floor 3 , | ||
58 | .Xr cabs 3 , | 57 | .Xr cabs 3 , |
58 | .Xr floor 3 , | ||
59 | .Xr imaxabs 3 , | ||
59 | .Xr math 3 | 60 | .Xr math 3 |
60 | .Sh STANDARDS | 61 | .Sh STANDARDS |
61 | The | 62 | The |
62 | .Fn labs | 63 | .Fn labs |
63 | function | 64 | and |
64 | conforms to | 65 | .Fn llabs |
65 | .St -ansiC . | 66 | functions conform to |
67 | .St -ansiC-99 . | ||
66 | .Sh BUGS | 68 | .Sh BUGS |
67 | The absolute value of the most negative integer remains negative. | 69 | The absolute value of the most negative integer remains negative. |