Advertisement
xXx_Fortis_xXx

Untitled

Apr 28th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.78 KB | None | 0 0
  1. #ifndef LINKEDLIST
  2. #define LINKEDLIST
  3.  
  4. typedef struct node{
  5.     int value;
  6.     struct node *next;
  7. };
  8.  
  9. typedef struct linkedList{
  10.     node *list;
  11. };
  12.  
  13. node *initNode (void);
  14. linkedList *initLinkedList (void);
  15. void pushBack (linkedList *L, node *n);
  16. void emplaceBack (linkedList *L, int v);
  17. void pushFront (linkedList *L, node *n);
  18. void emplaceFront (linkedList *L, int v);
  19. void insert (linkedList *L, node *n, int iter);
  20. void emplace (linkedList *L, int v, int iter);
  21. void popBack (linkedList *L);
  22. void popFront (linkedList *L);
  23. void erase (linkedList *L, int iter);
  24. void clear (linkedList *L);
  25. node *get (linkedList *L, int iter);
  26. int size (linkedList *L);
  27. node *getPrev (linkedList *L, node *n);
  28. node *getNext (linkedList *L, node *n);
  29. void printLinkedList (linkedList *L);
  30.  
  31. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement