strip arbitrary amount of directory separators at end of path */
| 1273 | |
| 1274 | /* strip arbitrary amount of directory separators at end of path */ |
| 1275 | static inline int chomp_trailing_dir_sep(const char *path, int len) |
| 1276 | { |
| 1277 | while (len && is_dir_sep(path[len - 1])) |
| 1278 | len--; |
| 1279 | return len; |
| 1280 | } |
| 1281 | |
| 1282 | /* |
| 1283 | * If path ends with suffix (complete path components), returns the offset of |
no outgoing calls
no test coverage detected