source:
trunk/sys/dietlibc/div.c
@
131
Last change on this file since 131 was 1, checked in by , 8 years ago | |
---|---|
File size: 273 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include "dietwarning.h" |
2 | #include <stdlib.h> | |
3 | ||
4 | div_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 | ||
11 | link_warning("div","warning: your code uses div(), which is completely superfluous!"); |
Note: See TracBrowser
for help on using the repository browser.