summaryrefslogtreecommitdiff
path: root/list.h
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-11-09 23:19:53 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-11-09 23:19:53 +0100
commit1566b6faa8534118c3566188181367cd0868468f (patch)
tree1de8d4b369efb5e592685a31088f798a6b63ffa1 /list.h
parent349991bf6efe473ab9a5cbdae0a8114d72b997e3 (diff)
downloadcrep-1566b6faa8534118c3566188181367cd0868468f.tar.gz
Added partial matching and introduced threads
Diffstat (limited to 'list.h')
-rw-r--r--list.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/list.h b/list.h
new file mode 100644
index 0000000..e494cba
--- /dev/null
+++ b/list.h
@@ -0,0 +1,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);
+void free_file_list(Node *head);
+int size_of_file_list(Node *head);
+
+#endif