eduardovp97

list.h

Nov 14th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #ifndef LIST_H
  2. #define LIST_H
  3.  
  4. typedef int TInfo;
  5.  
  6. typedef struct Node{
  7.     TInfo value;
  8.     struct Node* next;
  9. }TNode;
  10.  
  11. typedef struct List{
  12.     TNode *start;
  13.     TNode *end;
  14.     int nElem;
  15. }TList;
  16.  
  17. void initList(TList*);
  18. void finalizeList(TList*);
  19. void insertList(TList*, TInfo value);
  20. void deleteList(TList*, TInfo value);
  21. void printList(TList *);
  22. int isEmptyList(TList*);
  23. int sizeList(TList*);
  24. int memberList(TList*, TInfo value);
  25.  
  26. #endif
Add Comment
Please, Sign In to add comment