source: trunk/sys/dietlibc/div.c @ 339

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

First import

File size: 273 bytes
Line 
1#include "dietwarning.h"
2#include <stdlib.h>
3
4div_t div(int numerator, int denominator) {
5  div_t x;
6  x.quot=numerator/denominator;
7  x.rem=numerator-x.quot*denominator;
8  return x;
9}
10
11link_warning("div","warning: your code uses div(), which is completely superfluous!");
Note: See TracBrowser for help on using the repository browser.