2023-11-22 18:15:58 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
void ft_div_mod(int a, int b, int *div, int *mod);
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
int x = 42;
|
|
|
|
int y = 5;
|
|
|
|
int d = -999;
|
|
|
|
int m = -666;
|
|
|
|
|
|
|
|
printf("was: %d %d /%d %%%d\n", x, y, d, m);
|
|
|
|
ft_div_mod(x, y, &d, &m);
|
|
|
|
printf("now: %d %d /%d %%%d\n", x, y, d, m);
|
|
|
|
return 0;
|
|
|
|
}
|
2023-11-30 19:05:07 +00:00
|
|
|
|
|
|
|
void setUp(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void tearDown(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|