From c460a26850eca5ded047d0eb0d183b861087aa53 Mon Sep 17 00:00:00 2001 From: standenboy Date: Tue, 30 Apr 2024 14:22:45 +0100 Subject: write up update --- comp/lucas-standen-NEA/code/ads/ll/ll.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 comp/lucas-standen-NEA/code/ads/ll/ll.h (limited to 'comp/lucas-standen-NEA/code/ads/ll/ll.h') diff --git a/comp/lucas-standen-NEA/code/ads/ll/ll.h b/comp/lucas-standen-NEA/code/ads/ll/ll.h new file mode 100644 index 0000000..33b4d57 --- /dev/null +++ b/comp/lucas-standen-NEA/code/ads/ll/ll.h @@ -0,0 +1,16 @@ +#include +#include + +typedef struct ll_t ll_t; + +typedef struct ll_t { + void *data; + ll_t *next; +} ll_t; + +ll_t *llalloc(); +void llsetdata(ll_t *node, void *data); +void llsetnext(ll_t *node, ll_t *next); +void *llgetat(ll_t *head, int index); +ll_t *llgetendnode(ll_t *head); +void llfreeall(ll_t *head); -- cgit v1.2.3