OpenCoverage

c-strcasecmp.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/lib/c-strcasecmp.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6int-
7c_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
p1 == p2Description
TRUEnever evaluated
FALSEevaluated 901 times by 3 tests
Evaluated by:
  • dircolors
  • factor
  • ptx
)
0-901
14 return
never executed: return 0;
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'
c1 == '\0'Description
TRUEevaluated 73 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 1223 times by 3 tests
Evaluated by:
  • dircolors
  • factor
  • ptx
)
73-1223
22 break;
executed 73 times by 1 test: break;
Executed by:
  • dircolors
73
23-
24 ++p1;-
25 ++p2;-
26 }
executed 1223 times by 3 tests: end of block
Executed by:
  • dircolors
  • factor
  • ptx
1223
27 while (c1 == c2
c1 == c2Description
TRUEevaluated 395 times by 1 test
Evaluated by:
  • dircolors
FALSEevaluated 828 times by 3 tests
Evaluated by:
  • dircolors
  • factor
  • ptx
);
395-828
28-
29 if (-
30 (
(0x7f * 2 + 1) <= 0x7fffffffDescription
TRUEevaluated 901 times by 3 tests
Evaluated by:
  • dircolors
  • factor
  • ptx
FALSEnever evaluated
0x7f * 2 + 1)
(0x7f * 2 + 1) <= 0x7fffffffDescription
TRUEevaluated 901 times by 3 tests
Evaluated by:
  • dircolors
  • factor
  • ptx
FALSEnever evaluated
0-901
31 <= 0x7fffffff
(0x7f * 2 + 1) <= 0x7fffffffDescription
TRUEevaluated 901 times by 3 tests
Evaluated by:
  • dircolors
  • factor
  • ptx
FALSEnever evaluated
)
0-901
32 return
executed 901 times by 3 tests: return c1 - c2;
Executed by:
  • dircolors
  • factor
  • ptx
c1 - c2;
executed 901 times by 3 tests: return c1 - c2;
Executed by:
  • dircolors
  • factor
  • ptx
901
33 else-
34-
35-
36-
37 return
never executed: return (c1 > c2 ? 1 : c1 < c2 ? -1 : 0);
(c1 > c2 ? 1 : c1 < c2 ? -1 : 0);
never executed: return (c1 > c2 ? 1 : c1 < c2 ? -1 : 0);
0
38}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2