diff options
Diffstat (limited to 'src/lib/libc/stdlib/labs.3')
| -rw-r--r-- | src/lib/libc/stdlib/labs.3 | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/src/lib/libc/stdlib/labs.3 b/src/lib/libc/stdlib/labs.3 index 28e4d2053c..9658c3ad51 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,40 @@ | |||
| 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.10 2011/07/07 13:30:28 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: July 7 2011 $ |
| 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 , |
| 59 | .Xr math 3 | 58 | .Xr floor 3 , |
| 59 | .Xr imaxabs 3 | ||
| 60 | .Sh STANDARDS | 60 | .Sh STANDARDS |
| 61 | The | 61 | The |
| 62 | .Fn labs | 62 | .Fn labs |
| 63 | function | 63 | and |
| 64 | conforms to | 64 | .Fn llabs |
| 65 | .St -ansiC . | 65 | functions conform to |
| 66 | .St -ansiC-99 . | ||
| 66 | .Sh BUGS | 67 | .Sh BUGS |
| 67 | The absolute value of the most negative integer remains negative. | 68 | The absolute value of the most negative integer remains negative. |
