]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
corrected example
authorDaniel Stenberg <daniel@haxx.se>
Tue, 9 Jan 2007 18:58:16 +0000 (18:58 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 9 Jan 2007 18:58:16 +0000 (18:58 +0000)
docs/libcurl/curl_slist_append.3

index 8a61366f1efaffb93faffa88b44ae34a451ea5d6..a20d2f9a4093d7dc12dfa99d58392ecce0b4561f 100644 (file)
@@ -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), "