date and time created 90/10/01 22:07:21 by bostic
[unix-history] / usr / src / lib / libc / stdlib / div.3
CommitLineData
ee8e6c33
KB
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek.
6.\"
7.\" %sccs.include.redist.man%
8.\"
9.\" @(#)div.3 5.1 (Berkeley) %G%
10.\"
11.TH DIV 3 ""
12.UC 7
13.SH NAME
14div \- return quotient and remainder from division
15.SH SYNOPSIS
16.nf
17.ft B
18#include <stdlib.h>
19
20div_t
21div(int num, int denom);
22.ft R
23.fi
24.SH DESCRIPTION
25.I Div
26computes the value
27.I num/denom
28and returns the quotient and remainder in a structure named
29.B div_t
30that contains two
31.BR int
32members named
33.B quot
34and
35.BR rem .
36.SH SEE ALSO
37ldiv(3)
38.SH STANDARDS
39.B Div
40conforms to ANSI X3.159-1989 (``ANSI C'').