ldiv.c (107B)
1 #include <stdlib.h> 2 3 #undef ldiv 4 5 ldiv_t 6 ldiv(long num, long den) 7 { 8 return (ldiv_t) {num/den, num%den}; 9 }