DIV
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
div
- return quotient and remainder from division
SYNOPSIS
Fd #include <stdlib.h>
Ft div_t
Fn div int num int denom
DESCRIPTION
The
Fn div
function
computes the value
Fa num/denom
and returns the quotient and remainder in a structure named
Fa div_t
that contains two
int
members named
Fa quot
and
Fa rem .
SEE ALSO
ldiv(3),
qdiv(3),
math(3)
STANDARDS
The
Fn div
function
conforms to
St -ansiC .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- STANDARDS
-
This document was created by
man2html,
using the manual pages.
Time: 15:52:52 GMT, January 15, 2023