|
@ -16,11 +16,11 @@ int* division_integer(int dividend, int divisor) { |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
long* division_long(long num1, long num2) { |
|
|
|
|
|
if(num2 == 0) { |
|
|
|
|
|
|
|
|
long* division_long(long dividend, long divisor) { |
|
|
|
|
|
if(divisor == 0) { |
|
|
return NULL; |
|
|
return NULL; |
|
|
} |
|
|
} |
|
|
long* result = malloc(sizeof(long)); |
|
|
long* result = malloc(sizeof(long)); |
|
|
*result = num1 / num2; |
|
|
|
|
|
|
|
|
*result = dividend / divisor; |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |