From 964a7600b98dbdd4f03205b17ef93ef7850186fe Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Mon, 15 Jul 2013 16:53:43 +0200 Subject: slist.c, slist.h, cookie.c: new internal procedure Curl_slist_append_nodup() --- lib/slist.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/slist.h') diff --git a/lib/slist.h b/lib/slist.h index aede1f041..ea7dcc48b 100644 --- a/lib/slist.h +++ b/lib/slist.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2009, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2013, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -29,5 +29,12 @@ */ struct curl_slist *Curl_slist_duplicate(struct curl_slist *inlist); +/* + * Curl_slist_append_nodup() takes ownership of the given string and appends + * it to the list. + */ +struct curl_slist *Curl_slist_append_nodup(struct curl_slist *list, + char *data); + #endif /* HEADER_CURL_SLIST_H */ -- cgit v1.2.3