* last_dir_separator * * Find the location of the last directory separator, return * NULL if not found. */
| 135 | * NULL if not found. |
| 136 | */ |
| 137 | char * |
| 138 | last_dir_separator(const char *filename) |
| 139 | { |
| 140 | const char *p, |
| 141 | *ret = NULL; |
| 142 | |
| 143 | for (p = skip_drive(filename); *p; p++) |
| 144 | if (IS_DIR_SEP(*p)) |
| 145 | ret = p; |
| 146 | return unconstify(char *, ret); |
| 147 | } |
| 148 | |
| 149 | |
| 150 | /* |
no test coverage detected