div.c

The libc implementation

Author

Martin ‘Solar’ Baute

License

Public Domain

Summary
div.cThe libc implementation
Functions
divPerforms a division on integers both the quotient and remainder are stored in a div_t (_PDCLIB_div_t) struct
Todo’s
pre-C99 compilers might require modulus corrections

Functions

div

div_t div(int numer,
int denom)

Performs a division on integers both the quotient and remainder are stored in a div_t (_PDCLIB_div_t) struct

Todo’s

pre-C99 compilers might require modulus corrections

div_t div(int numer,
int denom)
Performs a division on integers both the quotient and remainder are stored in a div_t (_PDCLIB_div_t) struct
struct _PDCLIB_div_t
prototype of the div_t type