9 lines
145 B
C
9 lines
145 B
C
|
#include <stdlib.h>
|
||
|
|
||
|
ldiv_t ldiv(long int x, long int y) {
|
||
|
ldiv_t ret_val;
|
||
|
ret_val.quot = x / y;
|
||
|
ret_val.rem = x % y;
|
||
|
return ret_val;
|
||
|
}
|