diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-05-24 01:29:12 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-05-24 01:29:12 -0400 |
commit | b9ecb91843036216323d66896e01be7a79e6f362 (patch) | |
tree | 024b9742b9a6f55160767aa7afbcd449bb05dae3 | |
parent | 66ad66d6f312b23f2232d72d1e30c9250a25d65a (diff) |
removed ll->end
-rw-r--r-- | ll.c | 9 | ||||
-rw-r--r-- | ll.h | 12 |
2 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,9 @@ +#include <stdlib.h> +#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; +} @@ -0,0 +1,12 @@ +#ifndef _LL_INCLUDE +#define _LL_INCLUDE +#include <stdbool.h> + +typedef struct llnode { + char* str; + struct llnode* next; +} llnode; + +llnode* appendll(llnode* tail, char* str); + +#endif |