Lines Matching refs:list
31 /* returns last node in linked list */
32 static struct curl_slist *slist_get_last(struct curl_slist *list)
37 if(!list)
41 item = list;
49 * Curl_slist_append_nodup() appends a string to the linked list. Rather than
57 struct curl_slist *Curl_slist_append_nodup(struct curl_slist *list, char *data)
71 /* if this is the first item, then new_item *is* the list */
72 if(!list)
75 last = slist_get_last(list);
77 return list;
81 * curl_slist_append() appends a string to the linked list. It always returns
87 struct curl_slist *curl_slist_append(struct curl_slist *list,
95 list = Curl_slist_append_nodup(list, dupdata);
96 if(!list)
99 return list;
103 * Curl_slist_duplicate() duplicates a linked list. It always returns the
104 * address of the first record of the cloned list or NULL in case of an
105 * error (or if the input list was NULL).
127 void curl_slist_free_all(struct curl_slist *list)
132 if(!list)
135 item = list;