* first_dir_separator * * Find the location of the first directory separator, return * NULL if not found. */
| 100 | * NULL if not found. |
| 101 | */ |
| 102 | char * |
| 103 | first_dir_separator(const char *filename) |
| 104 | { |
| 105 | const char *p; |
| 106 | |
| 107 | for (p = skip_drive(filename); *p; p++) |
| 108 | if (IS_DIR_SEP(*p)) |
| 109 | return unconstify(char *, p); |
| 110 | return NULL; |
| 111 | } |
| 112 | |
| 113 | /* |
| 114 | * first_path_var_separator |
no test coverage detected