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%
@(#)div.3 5.1 (Berkeley) 05/16/90
All rights reserved.
This code is derived from software contributed to Berkeley by
Chris Torek.
%sccs.include.redist.man%
@(#)div.3 5.1 (Berkeley) 05/16/90
DIV 3 ""
C 7 NAME
div - return quotient and remainder from division
SYNOPSIS
#include <stdlib.h> div_t div(int num, int denom);
DESCRIPTION
Div computes the value
num/denom and returns the quotient and remainder in a structure named
div_t that contains two
int members named
quot and
rem . SEE ALSO
ldiv(3)
STANDARDS
Div conforms to ANSI X3.159-1989 (``ANSI C'').