Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/freadptr.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | - | |||||||
6 | - | |||||||
7 | const char * | - | ||||||
8 | freadptr (FILE *fp, size_t *sizep) | - | ||||||
9 | { | - | ||||||
10 | size_t size; | - | ||||||
11 | - | |||||||
12 | - | |||||||
13 | - | |||||||
14 | if (fp->_IO_write_ptr > fp->_IO_write_base
| 0-281 | ||||||
15 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 | ||||||
16 | ((void *)0) never executed: return ((void *)0) ; | 0 | ||||||
17 | ; never executed: return ((void *)0) ; | 0 | ||||||
18 | size = fp->_IO_read_end - fp->_IO_read_ptr; | - | ||||||
19 | if (size == 0
| 61-220 | ||||||
20 | return executed 61 times by 1 test: return ((void *)0) ; Executed by:
executed 61 times by 1 test: return ((void *)0) ; Executed by:
| 61 | ||||||
21 | ((void *)0) executed 61 times by 1 test: return ((void *)0) ; Executed by:
| 61 | ||||||
22 | ; executed 61 times by 1 test: return ((void *)0) ; Executed by:
| 61 | ||||||
23 | *sizep = size; | - | ||||||
24 | return executed 220 times by 1 test: (const char *) fp->_IO_read_ptr;return (const char *) fp->_IO_read_ptr; Executed by:
executed 220 times by 1 test: return (const char *) fp->_IO_read_ptr; Executed by:
| 220 | ||||||
25 | } | - | ||||||
Switch to Source code | Preprocessed file |