148349Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California. 242134Sbostic.\" All rights reserved. 342134Sbostic.\" 442134Sbostic.\" This code is derived from software contributed to Berkeley by 5*50308Sbostic.\" Chris Torek and the American National Standards Committee X3, 6*50308Sbostic.\" on Information Processing Systems. 7*50308Sbostic.\" 842134Sbostic.\" %sccs.include.redist.man% 942134Sbostic.\" 10*50308Sbostic.\" @(#)ldiv.3 5.3 (Berkeley) 06/29/91 1142134Sbostic.\" 1248349Scael.Dd 1348349Scael.Dt LDIV 3 1448349Scael.Os 1548349Scael.Sh NAME 1648349Scael.Nm ldiv 1748349Scael.Nd return quotient and remainder from division 1848349Scael.Sh SYNOPSIS 1948349Scael.Fd #include <stdlib.h> 2048349Scael.Ft ldiv_t 2148349Scael.Fn ldiv "int num" "int denom" 2248349Scael.Sh DESCRIPTION 2348349ScaelThe 2448349Scael.Fn ldiv 2548349Scaelfunction 2642134Sbosticcomputes the value 2748349Scael.Ar num/denom 2842134Sbosticand returns the quotient and remainder in a structure named 2948349Scael.Ar ldiv_t 3042134Sbosticthat contains two 3148349Scael.Em long integer 3242134Sbosticmembers named 3348349Scael.Ar quot 3442134Sbosticand 3548349Scael.Ar rem . 3648349Scael.Sh SEE ALSO 3748349Scael.Xr div 3 , 3848349Scael.Xr math 3 3948349Scael.Sh STANDARDS 4048349ScaelThe 4148349Scael.Fn ldiv 4248349Scaelfunction 4348349Scaelconforms to 4448349Scael.St -ansiC . 45