* Get the source base name. */
| 123 | * Get the source base name. |
| 124 | */ |
| 125 | const char *getBasename(const char *file) |
| 126 | { |
| 127 | const char *base = file; |
| 128 | for (size_t i = 0; file[i] != '\0'; i++) |
| 129 | base = (file[i] == '/'? file+i+1: base); |
| 130 | return base; |
| 131 | } |
| 132 | |
| 133 | /* |
| 134 | * Get executable path. |
no outgoing calls
no test coverage detected