diff options
Diffstat (limited to 'lib/libc/stdlib/lldiv.c')
| -rw-r--r-- | lib/libc/stdlib/lldiv.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/stdlib/lldiv.c b/lib/libc/stdlib/lldiv.c new file mode 100644 index 00000000..6df419b3 --- /dev/null +++ b/lib/libc/stdlib/lldiv.c @@ -0,0 +1,9 @@ +#include <stdlib.h> + +lldiv_t lldiv(long long numer, long long denom) +{ + lldiv_t result; + result.quot = numer / denom; + result.rem = numer % denom; + return result; +} |
