aboutsummaryrefslogtreecommitdiff
path: root/ll.c
blob: d929b2f810946006e7674cb1385a122f01ce0c8b (plain)
1
2
3
4
5
6
7
8
9
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;
}