blob: 7fab68103750b1a6c785e67e2081ae5b65a0ccd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <stdio.h>
#include <stdlib.h>
#include "linked_list.h"
int main(){
// should I make it so that when you make a node you have to first initialize it with a value?
// this means that we essentially can not have an empty list.
// NULL will count as an empty list
struct node* ll = init_ll(1);
/* prepend_ll(&ll, 1); */
printf("%d\n",count_ll(ll));
print_ll(ll);
/* delete_node(&ll,0); */
/* printf("%d\n",count_ll(ll)); */
free_ll(ll);
return 0;
}
|