Lines Matching defs:list
35 * slist_wc_append() appends a string to the linked list. This function can be
38 struct slist_wc *slist_wc_append(struct slist_wc *list,
46 if(!list) {
47 list = malloc(sizeof(struct slist_wc));
49 if(!list) {
54 list->first = new_item;
55 list->last = new_item;
56 return list;
59 list->last->next = new_item;
60 list->last = list->last->next;
61 return list;
65 void slist_wc_free_all(struct slist_wc *list)
67 if(!list)
70 curl_slist_free_all(list->first);
71 free(list);