bump version to 1.0.28
[uclibc-ng.git] / libc / stdlib / div.c
blobc921e48ea60c103c7c862363af1cba7c564d6f37
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 */
7 #include <stdlib.h>
9 div_t div(int numer, int denom)
11 div_t result;
12 result.quot = numer / denom;
13 result.rem = numer - (result.quot * denom);
14 return(result);