Home | History | Annotate | Download | only in src

Lines Matching refs:list

33  * slist_wc_append() appends a string to the linked list. This function can be
36 struct slist_wc *slist_wc_append(struct slist_wc *list,
44 if(!list) {
45 list = malloc(sizeof(struct slist_wc));
47 if(!list) {
52 list->first = new_item;
53 list->last = new_item;
54 return list;
57 list->last->next = new_item;
58 list->last = list->last->next;
59 return list;
63 void slist_wc_free_all(struct slist_wc *list)
65 if(!list)
68 curl_slist_free_all(list->first);
69 free(list);