C_Practice
linked_list.h
Go to the documentation of this file.
1 #ifndef INCLUDE_LINKED_LIST_H_
2 #define INCLUDE_LINKED_LIST_H_
3 
6 typedef struct Node_T {
7  int data;
8  struct Node * next;
9 }Node, *P_Node;
10 
13 typedef struct Du_Node_T {
14  int data;
15  struct Node* prev;
16  struct Node* next;
18 
19 void linked_list_dynamic_init(P_Node* p_node);
20 
21 void linked_list_push_node(P_Node* head_ref, int data);
22 
23 void linked_list_reverse(P_Node* head_ref);
24 
25 void printList(P_Node head);
26 
27 void printList_middle(P_Node head_ref);
28 
29 #endif /* INCLUDE_LINKED_LIST_H_ */
Definition: linked_list.h:13
struct Node_T * P_Node
void printList(P_Node head)
Definition: linked_list.c:19
struct Node * prev
Definition: linked_list.h:15
void linked_list_reverse(P_Node *head_ref)
Definition: linked_list.c:81
void linked_list_dynamic_init(P_Node *p_node)
Definition: linked_list.c:10
struct Du_Node_T Du_Node
int data
Definition: linked_list.h:14
struct Node * next
Definition: linked_list.h:8
struct Du_Node_T * P_Du_Node
struct Node_T Node
void printList_middle(P_Node head_ref)
Definition: linked_list.c:36
void linked_list_push_node(P_Node *head_ref, int data)
Definition: linked_list.c:57
int data
Definition: linked_list.h:7
Definition: linked_list.h:6
struct Node * next
Definition: linked_list.h:16