base_path
char *base_path;
base_path = strdup(&path[devices_len]);
base_path = strdup(path);
return (base_path);
static char *base_path(const char *);
if ((basepath = base_path(path)) == NULL)