source:
trunk/sys/dietlibc/ldiv.c
@
191
Last change on this file since 191 was 1, checked in by , 8 years ago | |
---|---|
File size: 165 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include <stdlib.h> |
2 | ||
3 | ldiv_t ldiv(long numerator, long denominator) { | |
4 | ldiv_t x; | |
5 | x.quot=numerator/denominator; | |
6 | x.rem=numerator-x.quot*denominator; | |
7 | return x; | |
8 | } |
Note: See TracBrowser
for help on using the repository browser.