Expanding test

Added test where data is a struct
This commit is contained in:
Michael Tryby
2019-04-10 16:12:13 -04:00
parent 06a90fd063
commit 669bdde122
3 changed files with 84 additions and 19 deletions

View File

@@ -28,19 +28,9 @@ typedef void(*freeFunction)(void *);
typedef bool (*listIterator)(void *);
typedef struct _listNode {
void *data;
struct _listNode *next;
} listNode;
typedef struct {
int logicalLength;
size_t elementSize;
listNode *head;
listNode *tail;
freeFunction freeFn;
} list_t;
// forward declarations
typedef struct list_node_s list_node_t;
typedef struct list_s list_t;
/**