1*61180Sbostic.\" Copyright (c) 1990, 1991, 1993 2*61180Sbostic.\" The Regents of the University of California. All rights reserved. 342132Sbostic.\" 442132Sbostic.\" This code is derived from software contributed to Berkeley by 542132Sbostic.\" Chris Torek. 642132Sbostic.\" %sccs.include.redist.man% 742132Sbostic.\" 8*61180Sbostic.\" @(#)div.3 8.1 (Berkeley) 06/04/93 942132Sbostic.\" 1048349Scael.Dd 1148349Scael.Dt DIV 3 1248349Scael.Os 1348349Scael.Sh NAME 1448349Scael.Nm div 1548349Scael.Nd return quotient and remainder from division 1648349Scael.Sh SYNOPSIS 1748349Scael.Fd #include <stdlib.h> 1848349Scael.Ft div_t 1948349Scael.Fn div "int num" "int denom" 2048349Scael.Sh DESCRIPTION 2148349ScaelThe 2248349Scael.Fn div 2348349Scaelfunction 2442132Sbosticcomputes the value 2548349Scael.Fa num/denom 2642132Sbosticand returns the quotient and remainder in a structure named 2748349Scael.Fa div_t 2842132Sbosticthat contains two 2948349Scael.Em int 3042132Sbosticmembers named 3148349Scael.Fa quot 3242132Sbosticand 3348349Scael.Fa rem . 3448349Scael.Sh SEE ALSO 3548349Scael.Xr ldiv 3 3648349Scael.Sh STANDARDS 3748349ScaelThe 3848349Scael.Fn div 3948349Scaelfunction 4048349Scaelconforms to 4148349Scael.St -ansiC . 42