Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/lib/memcmp2.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | - | |||||||
6 | int | - | ||||||
7 | memcmp2 (const char *s1, size_t n1, const char *s2, size_t n2) | - | ||||||
8 | { | - | ||||||
9 | int cmp = memcmp (s1, s2, n1 <= n2 ? n1 : n2); | - | ||||||
10 | if (cmp == 0
| 67-169 | ||||||
11 | { | - | ||||||
12 | if (n1 < n2
| 0-169 | ||||||
13 | cmp = -1; never executed: cmp = -1; | 0 | ||||||
14 | else if (n1 > n2
| 1-168 | ||||||
15 | cmp = 1; executed 1 time by 1 test: cmp = 1; Executed by:
| 1 | ||||||
16 | } executed 169 times by 1 test: end of block Executed by:
| 169 | ||||||
17 | return executed 236 times by 1 test: cmp;return cmp; Executed by:
executed 236 times by 1 test: return cmp; Executed by:
| 236 | ||||||
18 | } | - | ||||||
Switch to Source code | Preprocessed file |