source: trunk/sys/dietlibc/ldiv.c @ 146

Last change on this file since 146 was 1, checked in by alain, 8 years ago

First import

File size: 165 bytes
Line 
1#include <stdlib.h>
2
3ldiv_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.