-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLL2.h
More file actions
24 lines (19 loc) · 782 Bytes
/
Copy pathLL2.h
File metadata and controls
24 lines (19 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __LL2_H
#define __LL2_H
typedef struct linked_list_head_struct* linked_list_head;
typedef struct linked_list_node_struct* linked_list_node;
typedef struct linked_list_head_struct {
int number_of_nodes;
struct linked_list_node_struct* first;
struct linked_list_node_struct* last;
} linked_list_head_struct;
typedef struct linked_list_node_struct {
char* path;
struct linked_list_node_struct* next;
} linked_list_node_struct;
linked_list_head create_linked_list_head();
linked_list_node create_linked_list_node(char* path);
void insert_in_linked_list(linked_list_head linked_list, char* path);
void free_linked_list(linked_list_head linked_list);
void traverse_and_print(linked_list_head linked_list, int file, int dir, char* path_to_base_dir);
#endif