1.\" Copyright (c) 1990, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" Chris Torek. 6.\" %sccs.include.redist.man% 7.\" 8.\" @(#)div.3 8.1 (Berkeley) 06/04/93 9.\" 10.Dd 11.Dt DIV 3 12.Os 13.Sh NAME 14.Nm div 15.Nd return quotient and remainder from division 16.Sh SYNOPSIS 17.Fd #include <stdlib.h> 18.Ft div_t 19.Fn div "int num" "int denom" 20.Sh DESCRIPTION 21The 22.Fn div 23function 24computes the value 25.Fa num/denom 26and returns the quotient and remainder in a structure named 27.Fa div_t 28that contains two 29.Em int 30members named 31.Fa quot 32and 33.Fa rem . 34.Sh SEE ALSO 35.Xr ldiv 3 36.Sh STANDARDS 37The 38.Fn div 39function 40conforms to 41.St -ansiC . 42