From 0beda1a388faac8277ffa975629a58587a3b5264 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 25 Nov 2014 14:25:02 +0100 Subject: curl*3: added small examples and some minor edits --- docs/libcurl/curl_easy_cleanup.3 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/libcurl/curl_easy_cleanup.3') diff --git a/docs/libcurl/curl_easy_cleanup.3 b/docs/libcurl/curl_easy_cleanup.3 index 8d8375b62..403bfd35a 100644 --- a/docs/libcurl/curl_easy_cleanup.3 +++ b/docs/libcurl/curl_easy_cleanup.3 @@ -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), " -- cgit v1.2.3