| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/stripslash.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | _Bool | - | ||||||
| 4 | - | |||||||
| 5 | strip_trailing_slashes (char *file) | - | ||||||
| 6 | { | - | ||||||
| 7 | char *base = last_component (file); | - | ||||||
| 8 | char *base_lim; | - | ||||||
| 9 | - | |||||||
| 10 | _Bool | - | ||||||
| 11 | had_slash; | - | ||||||
| 12 | - | |||||||
| 13 | - | |||||||
| 14 | - | |||||||
| 15 | if (! *base
| 6-4066 | ||||||
| 16 | base = file; executed 6 times by 1 test: base = file;Executed by:
| 6 | ||||||
| 17 | base_lim = base + base_len (base); | - | ||||||
| 18 | had_slash = (*base_lim != '\0'); | - | ||||||
| 19 | *base_lim = '\0'; | - | ||||||
| 20 | return executed 4072 times by 5 tests: had_slash;return had_slash;Executed by:
executed 4072 times by 5 tests: return had_slash;Executed by:
| 4072 | ||||||
| 21 | } | - | ||||||
| Switch to Source code | Preprocessed file |