aboutsummaryrefslogtreecommitdiff
path: root/ll.c
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-04-01 21:57:28 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-04-01 21:57:31 -0400
commit7684f0844f02ed4f28e240bfe8e0baa1e1f58365 (patch)
treeca858db3bc3dfff3c2ed85b18627a2a21c3d0610 /ll.c
parent7ab511a476822ac1769c9be64b1ca315af6f983f (diff)
parent539e0bac89012848047e9d69aeee3d2138714928 (diff)
badroff has slightly erring .LS && typeset cleanup
Two lines can break at different spots and create incorrect images; nonbreaking spaces may need to be added for this.
Diffstat (limited to 'll.c')
-rw-r--r--ll.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ll.c b/ll.c
new file mode 100644
index 0000000..d929b2f
--- /dev/null
+++ b/ll.c
@@ -0,0 +1,10 @@
+#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;
+ new->loc = 0;
+ return new;
+}