Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2016
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.61 KB | None | 0 0
  1. #ifndef LIST_H_INCLUDED
  2. #define LIST_H_INCLUDED
  3.  
  4. typedef unsigned int u_int;
  5.  
  6. struct List_Node
  7. {
  8.     int data;
  9.     struct List_Node* next;
  10. };
  11.  
  12. typedef struct
  13. {
  14.     struct List_Node* first;
  15.     struct List_Node* last;
  16.  
  17.     u_int nodeCount;
  18. } Linked_List;
  19.  
  20. void list_node_init ( struct List_Node* node, int val);
  21.  
  22. void list_init      ( Linked_List* list );
  23. void list_clear   ( Linked_List* list );
  24.  
  25. void list_push_back ( Linked_List* l, u_int val );
  26.  
  27. void list_erase     ( Linked_List* l, u_int where );
  28.  
  29. int  list_get_node_val ( Linked_List* list, int where );
  30.  
  31.  
  32. #endif // LIST_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement