Advertisement
biznesman

list.h

Dec 5th, 2022
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #ifndef __LIST__
  2. #define __LIST__
  3.  
  4. typedef struct node node_t;
  5.  
  6. struct node
  7. {
  8.     int data;
  9.     node_t *next;
  10. };
  11.  
  12. void free_list(node_t *head);
  13. int print_list(node_t * head);
  14. node_t *create_node(int data);
  15. int pop_front(node_t **head);
  16. int pop_back(node_t **head);
  17. int push_back_value(node_t **head, int data);
  18.  
  19.  
  20.  
  21. #endif //__LIST__
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement