aboutsummaryrefslogtreecommitdiff
path: root/ll.c
diff options
context:
space:
mode:
Diffstat (limited to 'll.c')
-rw-r--r--ll.c9
1 files changed, 9 insertions, 0 deletions
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 <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;
+}