aboutsummaryrefslogtreecommitdiff
path: root/linkedlist/list.h
blob: db9162b00f8c531eecedded2cc84772f61fd39bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdlib.h>

struct list
{
	struct list *next;
	int data;
};

void list_init(struct list** _listroot);

void list_add(int _data, struct list** _listroot);

int list_popFront(struct list** _listroot);

int list_get(int _index, struct list** _listroot);