You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 line
360B

  1. #ifndef LIST_H
  2. #define LIST_H
  3. struct ListElem
  4. {
  5. void* dataStart;
  6. size_t dataSize;
  7. struct ListElem* next;
  8. };
  9. struct ListHead
  10. {
  11. struct ListElem* start;
  12. struct ListElem* end;
  13. };
  14. struct ListHead* list_create();
  15. int list_add(struct ListHead* head, void* data, size_t size);
  16. int list_free(struct ListHead* head);
  17. #endif // LIST_H