path-util: introduce path_find_first_component()
The function may be useful to iterate on each path component.
This commit is contained in:
@@ -149,6 +149,7 @@ int fsck_exists(const char *fstype);
|
||||
})
|
||||
|
||||
char* dirname_malloc(const char *path);
|
||||
int path_find_first_component(const char **p, bool accept_dot_dot, const char **ret);
|
||||
const char *last_path_component(const char *path);
|
||||
int path_extract_filename(const char *p, char **ret);
|
||||
int path_extract_directory(const char *p, char **ret);
|
||||
|
||||
Reference in New Issue
Block a user