Clean up and inline comments

This commit is contained in:
Michael Tryby
2019-04-10 10:57:55 -04:00
parent ea02e1736e
commit f9dd9bc766
3 changed files with 11 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ typedef struct _listNode {
typedef struct {
int logicalLength;
int elementSize;
size_t elementSize;
listNode *head;
listNode *tail;
freeFunction freeFn;
@@ -44,7 +44,7 @@ typedef struct {
@brief Initializes a linked list to store elements of elementSize and to call
freeFunction for each element when destroying a list.
*/
list_t *create_list(int elementSize, freeFunction freeFn);
list_t *create_list(size_t elementSize, freeFunction freeFn);
/**
@brief Frees dynamically allocated nodes and optionally calls freeFunction