@ -15,3 +15,12 @@ int* division_integer(int dividend, int divisor) {
*result = dividend / divisor;
return result;
}
long* division_long(long num1, long num2) {
if(num2 == 0) {
return NULL;
long* result = malloc(sizeof(long));
*result = num1 / num2;
@ -3,4 +3,6 @@
int* division_integer(int, int);
long* division_long(long, long);
#endif //THEADMIRALS_ARITHMETICDIVISION_H