| LCOV - code coverage report | ||||||||||||||||||||||
|
||||||||||||||||||||||
Line data Source code 1 : #include "div_op.h" 2 : 3 9 : int divide_op(calctask_t *task) 4 : { 5 : /* Note that this function does not check for NULL pointers, 6 : because it is assumed that the caller has already done so. 7 : */ 8 : 9 : /* Check for divide by zero */ 10 9 : if (task->operand2 == 0) 11 : { 12 4 : return 0; 13 : } 14 5 : task->result = task->operand1 / task->operand2; 15 5 : return 1; 16 : } |
| Generated by: LCOV version 2.3.1-1 |