From ace65b453151845bc361f21f3e5b651c35f9f126 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 22 May 2024 13:00:41 -0400 Subject: massive refactor for mp and organization --- lib/linkedlist.h | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 lib/linkedlist.h (limited to 'lib/linkedlist.h') diff --git a/lib/linkedlist.h b/lib/linkedlist.h deleted file mode 100644 index 26c148e..0000000 --- a/lib/linkedlist.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef JOVE_LIB_LINKEDLIST_H -#define JOVE_LIB_LINKEDLIST_H 1 - -#include -#include - -struct SLLNode { - struct SLLNode *next; - char data[]; -}; - -/*Singly Linked List*/ -struct SLinkedList -{ - struct SLLNode *head; - struct SLLNode *tail; - - size_t obj_size; - size_t count; -}; - -void sll_new(struct SLinkedList *list, size_t obj_size); -void sll_push(struct SLinkedList *list, void *node); -void *sll_get(struct SLinkedList *list, size_t index); - -#endif -- cgit v1.2.1