Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/lib/c-strcasecmp.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | - | |||||||||||||
4 | - | |||||||||||||
5 | - | |||||||||||||
6 | int | - | ||||||||||||
7 | c_strcasecmp (const char *s1, const char *s2) | - | ||||||||||||
8 | { | - | ||||||||||||
9 | register const unsigned char *p1 = (const unsigned char *) s1; | - | ||||||||||||
10 | register const unsigned char *p2 = (const unsigned char *) s2; | - | ||||||||||||
11 | unsigned char c1, c2; | - | ||||||||||||
12 | - | |||||||||||||
13 | if (p1 == p2
| 0-901 | ||||||||||||
14 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
15 | - | |||||||||||||
16 | do | - | ||||||||||||
17 | { | - | ||||||||||||
18 | c1 = c_tolower (*p1); | - | ||||||||||||
19 | c2 = c_tolower (*p2); | - | ||||||||||||
20 | - | |||||||||||||
21 | if (c1 == '\0'
| 73-1223 | ||||||||||||
22 | break; executed 73 times by 1 test: break; Executed by:
| 73 | ||||||||||||
23 | - | |||||||||||||
24 | ++p1; | - | ||||||||||||
25 | ++p2; | - | ||||||||||||
26 | } executed 1223 times by 3 tests: end of block Executed by:
| 1223 | ||||||||||||
27 | while (c1 == c2
| 395-828 | ||||||||||||
28 | - | |||||||||||||
29 | if ( | - | ||||||||||||
30 | (
| 0-901 | ||||||||||||
31 | <= 0x7fffffff
| 0-901 | ||||||||||||
32 | return executed 901 times by 3 tests: c1 - c2;return c1 - c2; Executed by:
executed 901 times by 3 tests: return c1 - c2; Executed by:
| 901 | ||||||||||||
33 | else | - | ||||||||||||
34 | - | |||||||||||||
35 | - | |||||||||||||
36 | - | |||||||||||||
37 | return never executed: (c1 > c2 ? 1 : c1 < c2 ? -1 : 0);return (c1 > c2 ? 1 : c1 < c2 ? -1 : 0); never executed: return (c1 > c2 ? 1 : c1 < c2 ? -1 : 0); | 0 | ||||||||||||
38 | } | - | ||||||||||||
Switch to Source code | Preprocessed file |