hb/linkedlist.h
2019-12-20 17:33:20 -05:00

22 lines
453 B
C

//
// Created by jake on 12/17/19.
//
#ifndef HOSTBLOCKER_LINKEDLIST_H
#define HOSTBLOCKER_LINKEDLIST_H
#include <stdlib.h>
/**
* Our linked list structure to be used for holding configuration files.
*/
typedef struct linkedlist {
char *data;
struct linkedlist *next;
} LinkedList;
LinkedList *linkedlist_new();
void linkedlist_add(LinkedList **head, char *data);
void linkedlist_print(LinkedList *head);
#endif //HOSTBLOCKER_LINKEDLIST_H