non-AT&T implementations of frexp.c in machine/gen/frexp.c
[unix-history] / usr / src / lib / libc / stdlib / ldiv.3
.\" Copyright (c) 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" Chris Torek.
.\"
.\" %sccs.include.redist.man%
.\"
.\" @(#)ldiv.3 5.1 (Berkeley) %G%
.\"
.TH LDIV 3 ""
.UC 7
.SH NAME
ldiv \- return quotient and remainder from division
.SH SYNOPSIS
.nf
.ft B
#include <stdlib.h>
ldiv_t
ldiv(int num, int denom)
.ft R
.fi
.SH DESCRIPTION
.B Ldiv
computes the value
.I num/denom
and returns the quotient and remainder in a structure named
.B ldiv_t
that contains two
.B "long integer"
members named
.B quot
and
.BR rem .
.SH SEE ALSO
div(3)
.SH STANDARDS
.B Ldiv
conforms to ANSI X3.159-1989 (``ANSI C'').