aboutsummaryrefslogtreecommitdiff
path: root/ll.c
blob: 40c5f99b2afe4a097782c224dd4497db3b17afe0 (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->end = 0;
    return new;
}