1 /*
2  * div for uClibc
3  * Copyright (C) 2000-2006 by Erik Andersen <andersen@uclibc.org>
4  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5  */
6 
7 #include <stdlib.h>
8 
div(int numer,int denom)9 div_t div(int numer, int denom)
10 {
11     div_t result;
12     result.quot = numer / denom;
13     result.rem  = numer - (result.quot * denom);
14     return(result);
15 }
16 
17