Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #ifndef LIST_H_
  2. #define LIST_H_
  3. #include <stddef.h>
  4. #include <stdint.h>
  5. #include <stdbool.h>
  6. #include <string.h>
  7. #include <stdlib.h>
  8. #include <stdio.h>
  9.  
  10. #define SOLUTION_MAX_SIZE 3
  11.  
  12. typedef struct list_element{
  13. char solution[SOLUTION_MAX_SIZE];
  14. struct list_element* next;
  15. } list_element;
  16.  
  17. typedef struct list{
  18. list_element* head;
  19. } list;
  20.  
  21. void CreateList(list* list);
  22. void AddElement(list* list, char* solution);
  23. void RemoveElement(list* list, list_element* element);
  24. void DestroyList(list* list);
  25. void PrintList(list* list);
  26. list_element* CreateElement(char* solution);
  27. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement