aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-01-09 18:58:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-01-09 18:58:16 +0000
commit75899741b91730b6f48ca80aedbe5fcf31f69ac2 (patch)
tree164687a18afab3c6914e16d44722cf9ad9052605 /docs
parentd4651994110612c476a2b65dfa0f9b4f138fca68 (diff)
corrected example
Diffstat (limited to 'docs')
-rw-r--r--docs/libcurl/curl_slist_append.34
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/libcurl/curl_slist_append.3 b/docs/libcurl/curl_slist_append.3
index 8a61366f1..a20d2f9a4 100644
--- a/docs/libcurl/curl_slist_append.3
+++ b/docs/libcurl/curl_slist_append.3
@@ -24,8 +24,9 @@ The list should be freed again (after usage) with
A null pointer is returned if anything went wrong, otherwise the new list
pointer is returned.
.SH EXAMPLE
+.nf
CURL handle;
- curl_slist *slist=NULL;
+ struct curl_slist *slist=NULL;
slist = curl_slist_append(slist, "pragma:");
curl_easy_setopt(handle, CURLOPT_HTTPHEADER, slist);
@@ -33,5 +34,6 @@ pointer is returned.
curl_easy_perform(handle);
curl_slist_free_all(slist); /* free the list again */
+.fi
.SH "SEE ALSO"
.BR curl_slist_free_all "(3), "