You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
468 B

#ifndef LIST_H_
#define LIST_H_
#include "nodeData.h"
typedef struct Node Node;
typedef struct List List;
typedef struct List {
Node *head;
Node *tail;
} List;
typedef struct Node {
int data;
Node *next;
Node *prev;
} Node;
//Only for internal purpose
Node * ListCreateNode(int *data);
//Print the list in order
void ListPrintForward(List *list);
void ListInsertFront(List *list, int data);
void ListInsertBack(List *list, int data);
#endif