Advertisement
xXx_Fortis_xXx

Untitled

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