PatchworkOS
Loading...
Searching...
No Matches
div.c
Go to the documentation of this file.
1#include <stdlib.h>
2
3div_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_t div(int numer, int denom)
Definition div.c:3
Definition stdlib.h:75
int quot
Definition stdlib.h:76
int rem
Definition stdlib.h:77