Lines Matching defs:list
35 /* returns last node in linked list */
36 static struct curl_slist *slist_get_last(struct curl_slist *list)
41 if(!list)
45 item = list;
53 * Curl_slist_append_nodup() appends a string to the linked list. Rather than
61 struct curl_slist *Curl_slist_append_nodup(struct curl_slist *list, char *data)
75 /* if this is the first item, then new_item *is* the list */
76 if(!list)
79 last = slist_get_last(list);
81 return list;
85 * curl_slist_append() appends a string to the linked list. It always returns
91 struct curl_slist *curl_slist_append(struct curl_slist *list,
99 list = Curl_slist_append_nodup(list, dupdata);
100 if(!list)
103 return list;
107 * Curl_slist_duplicate() duplicates a linked list. It always returns the
108 * address of the first record of the cloned list or NULL in case of an
109 * error (or if the input list was NULL).
131 void curl_slist_free_all(struct curl_slist *list)
136 if(!list)
139 item = list;