diff options
Diffstat (limited to 'src/lib/libc/stdlib/div.3')
| -rw-r--r-- | src/lib/libc/stdlib/div.3 | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/src/lib/libc/stdlib/div.3 b/src/lib/libc/stdlib/div.3 index a4730694a5..2403fcb0e8 100644 --- a/src/lib/libc/stdlib/div.3 +++ b/src/lib/libc/stdlib/div.3 | |||
| @@ -11,11 +11,7 @@ | |||
| 11 | .\" 2. Redistributions in binary form must reproduce the above copyright | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| 12 | .\" notice, this list of conditions and the following disclaimer in the | 12 | .\" notice, this list of conditions and the following disclaimer in the |
| 13 | .\" documentation and/or other materials provided with the distribution. | 13 | .\" documentation and/or other materials provided with the distribution. |
| 14 | .\" 3. All advertising materials mentioning features or use of this software | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
| 15 | .\" must display the following acknowledgement: | ||
| 16 | .\" This product includes software developed by the University of | ||
| 17 | .\" California, Berkeley and its contributors. | ||
| 18 | .\" 4. Neither the name of the University nor the names of its contributors | ||
| 19 | .\" may be used to endorse or promote products derived from this software | 15 | .\" may be used to endorse or promote products derived from this software |
| 20 | .\" without specific prior written permission. | 16 | .\" without specific prior written permission. |
| 21 | .\" | 17 | .\" |
| @@ -31,10 +27,9 @@ | |||
| 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 32 | .\" SUCH DAMAGE. | 28 | .\" SUCH DAMAGE. |
| 33 | .\" | 29 | .\" |
| 34 | .\" from: @(#)div.3 5.2 (Berkeley) 4/19/91 | 30 | .\" $OpenBSD: div.3,v 1.10 2011/07/07 13:30:28 jmc Exp $ |
| 35 | .\" $Id: div.3,v 1.1.1.1 1995/10/18 08:42:17 deraadt Exp $ | ||
| 36 | .\" | 31 | .\" |
| 37 | .Dd April 19, 1991 | 32 | .Dd $Mdocdate: July 7 2011 $ |
| 38 | .Dt DIV 3 | 33 | .Dt DIV 3 |
| 39 | .Os | 34 | .Os |
| 40 | .Sh NAME | 35 | .Sh NAME |
| @@ -47,24 +42,23 @@ | |||
| 47 | .Sh DESCRIPTION | 42 | .Sh DESCRIPTION |
| 48 | The | 43 | The |
| 49 | .Fn div | 44 | .Fn div |
| 50 | function | 45 | function computes the value |
| 51 | computes the value | 46 | .Fa num Ns / Ns Fa denom |
| 52 | .Fa num/denom | ||
| 53 | and returns the quotient and remainder in a structure named | 47 | and returns the quotient and remainder in a structure named |
| 54 | .Fa div_t | 48 | .Fa div_t |
| 55 | that contains two | 49 | that contains two |
| 56 | .Em int | 50 | .Li int |
| 57 | members named | 51 | members named |
| 58 | .Fa quot | 52 | .Fa quot |
| 59 | and | 53 | and |
| 60 | .Fa rem . | 54 | .Fa rem . |
| 61 | .Sh SEE ALSO | 55 | .Sh SEE ALSO |
| 56 | .Xr imaxdiv 3 , | ||
| 62 | .Xr ldiv 3 , | 57 | .Xr ldiv 3 , |
| 63 | .Xr qdiv 3 , | 58 | .Xr lldiv 3 , |
| 64 | .Xr math 3 | 59 | .Xr qdiv 3 |
| 65 | .Sh STANDARDS | 60 | .Sh STANDARDS |
| 66 | The | 61 | The |
| 67 | .Fn div | 62 | .Fn div |
| 68 | function | 63 | function conforms to |
| 69 | conforms to | ||
| 70 | .St -ansiC . | 64 | .St -ansiC . |
