Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #pragma once
  2.  
  3.  
  4. #ifndef _LLIST_H_INCLUDED
  5. #define _LLIST_H_INCLUDED
  6.  
  7. //MacrosInit
  8.  
  9. typedef enum Boolean {
  10. FALSE = 0, TRUE = 1
  11. } Boolean;
  12.  
  13. typedef enum Status {
  14. OK, ERROR
  15. } Status;
  16.  
  17. //MacrosEnd
  18.  
  19. typedef struct ListNode {
  20. void * pData;
  21. struct ListNode * next;
  22.  
  23. }ListNode;
  24.  
  25. typedef ListNode * List;
  26.  
  27.  
  28. void initList(List * l);
  29.  
  30. Boolean VerifyEmptyList(List l);
  31.  
  32. ListNode* NewNode(void* data);
  33.  
  34. ListNode* NewNode();
  35.  
  36. Status InsertIni(List* l, void* data);
  37.  
  38. Status InsertEnd(List* l, void* data);
  39.  
  40. int ListSize(List l);
  41.  
  42. void PrintNodes(List l, char* (*f)(void* data));
  43.  
  44. List findPreviousNode(List l, List node);
  45.  
  46. void removeNode(List* l, List l2, List l3);
  47.  
  48. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement