diff options
Diffstat (limited to '')
-rw-r--r-- | src/list.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/list.h b/src/list.h index 86f4a239a..6ea43fbef 100644 --- a/src/list.h +++ b/src/list.h @@ -52,6 +52,8 @@ typedef struct _List { long numberOfNodes; /* array for searching when list is sorted */ ListNode ** nodesArray; + /* weather to strdup() key's on insertion */ + int strdupKeys; } List; /* allocates memory for a new list and initializes it @@ -59,7 +61,7 @@ typedef struct _List { * DEFAULT_FREE_DATAFUNC to use free() * returns pointer to new list if successful, NULL otherwise */ -List * makeList(ListFreeDataFunc * freeDataFunc); +List * makeList(ListFreeDataFunc * freeDataFunc, int strdupKeys); /* inserts a node into _list_ with _key_ and _data_ * _list_ -> list the data will be inserted in |