.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" May be distributed under the GNU General Public License .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Mon Mar 29 22:44:02 1993, David Metcalfe .\" Modified Sat Jul 24 19:47:44 1993, Rik Faith (faith@cs.unc.edu) .TH DIV 3 "June 6, 1993" "" "Linux Programmer's Manual" .SH NAME div \- computes the quotient and remainder of integer division .SH SYNOPSIS .nf .B #include .sp .BI "div_t div(int " numer ", int " denom ); .fi .SH DESCRIPTION The \fBdiv()\fP function computes the value \fInumer\fP/\fIdenom\fP and returns the quotient and remainder in a structure named \fIdiv_t\fP that contains two integer members named \fIquot\fP and \fIrem\fP. .SH "RETURN VALUE" The \fIdiv_t\fP structure. .SH "CONFORMING TO" SVID 3, BSD 4.3, ISO 9899 .SH SEE ALSO .BR ldiv (3)