From b9ecb91843036216323d66896e01be7a79e6f362 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Sun, 24 May 2020 01:29:12 -0400 Subject: removed ll->end --- ll.c | 9 +++++++++ ll.h | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 ll.c create mode 100644 ll.h diff --git a/ll.c b/ll.c new file mode 100644 index 0000000..aa0879a --- /dev/null +++ b/ll.c @@ -0,0 +1,9 @@ +#include +#include "ll.h" + +llnode* appendll(llnode* tail, char* str){ + llnode* new = malloc(sizeof(llnode)); + if (tail != NULL) tail->next = new; + new->str = str; + return new; +} diff --git a/ll.h b/ll.h new file mode 100644 index 0000000..9a80182 --- /dev/null +++ b/ll.h @@ -0,0 +1,12 @@ +#ifndef _LL_INCLUDE +#define _LL_INCLUDE +#include + +typedef struct llnode { + char* str; + struct llnode* next; +} llnode; + +llnode* appendll(llnode* tail, char* str); + +#endif -- cgit