OpenCoverage

c-strtod.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/c-strtod.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4static volatile locale_t c_locale_cache;-
5-
6-
7-
8static locale_t-
9c_locale (void)-
10{-
11 if (!c_locale_cache
!c_locale_cacheDescription
TRUEevaluated 601 times by 5 tests
Evaluated by:
  • printf
  • seq
  • sleep
  • tail
  • timeout
FALSEevaluated 221 times by 2 tests
Evaluated by:
  • seq
  • sleep
)
221-601
12 c_locale_cache = newlocale (
executed 601 times by 5 tests: c_locale_cache = newlocale ( ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12) ) , "C", (locale_t) 0);
Executed by:
  • printf
  • seq
  • sleep
  • tail
  • timeout
601
13 ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12) )
executed 601 times by 5 tests: c_locale_cache = newlocale ( ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12) ) , "C", (locale_t) 0);
Executed by:
  • printf
  • seq
  • sleep
  • tail
  • timeout
601
14 , "C", (locale_t) 0);
executed 601 times by 5 tests: c_locale_cache = newlocale ( ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10) | (1 << 11) | (1 << 12) ) , "C", (locale_t) 0);
Executed by:
  • printf
  • seq
  • sleep
  • tail
  • timeout
601
15 return
executed 822 times by 5 tests: return c_locale_cache;
Executed by:
  • printf
  • seq
  • sleep
  • tail
  • timeout
c_locale_cache;
executed 822 times by 5 tests: return c_locale_cache;
Executed by:
  • printf
  • seq
  • sleep
  • tail
  • timeout
822
16}-
17-
18-
19-
20double-
21c_strtod (char const *nptr, char **endptr)-
22{-
23 double r;-
24-
25-
26-
27 locale_t locale = c_locale ();-
28 if (!locale
!localeDescription
TRUEnever evaluated
FALSEevaluated 822 times by 5 tests
Evaluated by:
  • printf
  • seq
  • sleep
  • tail
  • timeout
)
0-822
29 {-
30 if (endptr
endptrDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
31 *
never executed: *endptr = (char *) nptr;
endptr = (char *) nptr;
never executed: *endptr = (char *) nptr;
0
32 return
never executed: return 0;
0;
never executed: return 0;
0
33 }-
34-
35 r = strtod_l (nptr, endptr, locale);-
36 return
executed 822 times by 5 tests: return r;
Executed by:
  • printf
  • seq
  • sleep
  • tail
  • timeout
r;
executed 822 times by 5 tests: return r;
Executed by:
  • printf
  • seq
  • sleep
  • tail
  • timeout
822
37}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2