blob: e34d9210043d43991274b2e67ea31f8d6154c93a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#ifndef LIST_H
#define LIST_H
typedef struct node {
char *file_path;
struct node *next;
} Node;
void add_file_path(Node **head, char *file_path);
void list_files_recursively(char *base_path, Node **head, int max_depth, int current_depth);
void free_file_list(Node *head);
int size_of_file_list(Node *head);
#endif
|