xref: /original-bsd/lib/libc/stdlib/ldiv.3 (revision bff54947)
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) 05/16/90

LDIV 3 ""
C 7
NAME
ldiv - return quotient and remainder from division
SYNOPSIS
#include <stdlib.h>

ldiv_t
ldiv(int num, int denom)
DESCRIPTION
Ldiv computes the value num/denom and returns the quotient and remainder in a structure named ldiv_t that contains two "long integer" members named quot and rem .
SEE ALSO
div(3)
STANDARDS
Ldiv conforms to ANSI X3.159-1989 (``ANSI C'').