kolibrios/contrib/kolibri-libc/source/stdlib/div.c

6 lines
89 B
C
Raw Normal View History

#include <stdlib.h>
div_t div(int num, int den)
{
return (div_t){ num/den, num%den };
}