curl*3: added small examples

and some minor edits
This commit is contained in:
Daniel Stenberg
2014-11-25 14:25:02 +01:00
parent 7eb7f7c32d
commit 0beda1a388
5 changed files with 61 additions and 9 deletions

View File

@@ -52,6 +52,16 @@ safely remove all the strings you've previously told libcurl to use, as it
won't use them anymore now.
.SH RETURN VALUE
None
.SH EXAMPLE
.nf
CURL *curl = curl_easy_init();
if(curl) {
CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
.fi
.SH "SEE ALSO"
.BR curl_easy_init "(3), "