PatchworkOS
Loading...
Searching...
No Matches
div.c
Go to the documentation of this file.
1
#include <
stdlib.h
>
2
3
div_t
div
(
int
numer,
int
denom)
4
{
5
div_t
rc;
6
rc.
quot
= numer / denom;
7
rc.
rem
= numer % denom;
8
/* TODO: pre-C99 compilers might require modulus corrections */
9
return
rc;
10
}
div
div_t div(int numer, int denom)
Definition
div.c:3
stdlib.h
div_t
Definition
stdlib.h:75
div_t::quot
int quot
Definition
stdlib.h:76
div_t::rem
int rem
Definition
stdlib.h:77
src
libstd
functions
stdlib
div.c
Generated by
1.9.8