Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/strnlen1.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | - | |||||||
6 | - | |||||||
7 | - | |||||||
8 | - | |||||||
9 | size_t | - | ||||||
10 | strnlen1 (const char *string, size_t maxlen) | - | ||||||
11 | { | - | ||||||
12 | const char *end = (const char *) memchr (string, '\0', maxlen); | - | ||||||
13 | if (end !=
| 0 | ||||||
14 | ((void *)0)
| 0 | ||||||
15 | ) | - | ||||||
16 | return never executed: end - string + 1;return end - string + 1; never executed: return end - string + 1; | 0 | ||||||
17 | else | - | ||||||
18 | return never executed: maxlen;return maxlen; never executed: return maxlen; | 0 | ||||||
19 | } | - | ||||||
Switch to Source code | Preprocessed file |