Commit | Line | Data |
---|---|---|
32811017 KB |
1 | .\" Copyright (c) 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" %sccs.include.redist.man% | |
5 | .\" | |
6 | .\" @(#)labs.3 5.1 (Berkeley) %G% | |
7 | .\" | |
8 | .TH LABS 3 "" | |
9 | .UC 7 | |
10 | .SH NAME | |
11 | labs \- return the absolute value of a long integer | |
12 | .SH SYNOPSIS | |
13 | .nf | |
14 | .ft B | |
15 | #include <stdlib.h> | |
16 | ||
17 | long | |
18 | labs(long j); | |
19 | .ft R | |
20 | .fi | |
21 | .SH DESCRIPTION | |
22 | .B Labs | |
23 | returns the absolute value of the long integer | |
24 | .IR n . | |
25 | .SH SEE ALSO | |
26 | abs(3), floor(3) | |
27 | .SH STANDARDS | |
28 | .B Labs | |
29 | conforms to ANSI X3.159-1989 (``ANSI C''). | |
30 | .SH BUGS | |
31 | The absolute value of the most negative integer remains negative. |