|
|
@ -24,13 +24,13 @@ int main() { |
|
|
|
char* parent = path_parent(path); |
|
|
|
char* parent = path_parent(path); |
|
|
|
printf("Parent: %s\n", parent); |
|
|
|
printf("Parent: %s\n", parent); |
|
|
|
|
|
|
|
|
|
|
|
path_free(path); |
|
|
|
path_free(&path); |
|
|
|
|
|
|
|
|
|
|
|
char* parent_of_parent = path_parent(parent); |
|
|
|
char* parent_of_parent = path_parent(parent); |
|
|
|
printf("Parent of parent: %s\n", parent_of_parent); |
|
|
|
printf("Parent of parent: %s\n", parent_of_parent); |
|
|
|
|
|
|
|
|
|
|
|
path_free(parent); |
|
|
|
path_free(&parent); |
|
|
|
path_free(parent_of_parent); |
|
|
|
path_free(&parent_of_parent); |
|
|
|
|
|
|
|
|
|
|
|
return EXIT_SUCCESS; |
|
|
|
return EXIT_SUCCESS; |
|
|
|
} |
|
|
|
} |
|
|
|