From 9aa1e19e264b7490cf864058aa17f7e9acb41d6d Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Fri, 10 Oct 2025 17:45:11 +0100 Subject: Move & update main to src folder --- demo/main.c | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 demo/main.c (limited to 'demo/main.c') diff --git a/demo/main.c b/demo/main.c deleted file mode 100644 index 46fce13..0000000 --- a/demo/main.c +++ /dev/null @@ -1,45 +0,0 @@ -#include "../src/ll.h" - -int main() { - int val = 7; - Node* head = llnode(val); - /* printf("Init with %i:\t", val); */ - /* llprint(head); */ - - /* val = 12; */ - /* llpush(&head, val); */ - /* printf("Push %i:\t", val); */ - /* llprint(head); */ - - /* val = 99; */ - /* printf("Append %i:\t", val); */ - /* llappend(head,val); */ - /* llprint(head); */ - - /* val = 45; */ - /* printf("Insert %i:\t", val); */ - /* llinsert(&head, val, 2); */ - /* llprint(head); */ - - /* val = 42; */ - /* printf("Insert %i:\t", val); */ - /* llinsert(&head, val, 1); */ - /* llprint(head); */ - - /* printf("Pop %i:\t\t", llpop(&head)); */ - /* llprint(head); */ - - /* printf("Remove %i:\t",llrmlast(&head)); */ - /* llprint(head); */ - - /* printf("Remove %i:\t",llrm(&head,1)); */ - /* llprint(head); */ - - /* llvprint(head); */ - - head->next = llnode(14); - head->next->next = llnode(22); - llfree(&head); - llprint(head); - printf("Length: %i\n", lllength(head)); -} -- cgit