diff options
| author | @syxhe <https://t.me/syxhe> | 2025-04-21 21:51:54 -0500 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2025-04-21 21:51:54 -0500 |
| commit | c704a8a382c231e066a7fbf0402a33455c40b8f5 (patch) | |
| tree | 0c4000906060013de91ea7fc1888cedcbc34159e /src/main.c | |
| parent | 521e9a2fc8e0ef1dffe4e590d0d4f65292f0d1df (diff) | |
Rework dlinkedlist functions to use VALLOC macro instead of only xalloc
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 13 |
1 files changed, 0 insertions, 13 deletions
| @@ -1,5 +1,3 @@ | |||
| 1 | #define _GNU_SOURCE | ||
| 2 | |||
| 3 | #include "arena.h" | 1 | #include "arena.h" |
| 4 | #include "ll.h" | 2 | #include "ll.h" |
| 5 | #include "encryption.h" | 3 | #include "encryption.h" |
| @@ -9,18 +7,7 @@ | |||
| 9 | 7 | ||
| 10 | #include <errno.h> | 8 | #include <errno.h> |
| 11 | #include <error.h> | 9 | #include <error.h> |
| 12 | #include <stdio.h> | ||
| 13 | |||
| 14 | #include <string.h> | ||
| 15 | #include <stdlib.h> | ||
| 16 | 10 | ||
| 17 | |||
| 18 | #include <dirent.h> | ||
| 19 | int lol(const struct dirent *node) {return 1;} | ||
| 20 | int printnames(void *data) { | ||
| 21 | printf("%s\n", (data) ? ((struct dirent *)data)->d_name : "null"); | ||
| 22 | return 0; | ||
| 23 | } | ||
| 24 | int main() { | 11 | int main() { |
| 25 | error(1, ENOTSUP, "No main file lol"); | 12 | error(1, ENOTSUP, "No main file lol"); |
| 26 | return 0; | 13 | return 0; |
