title: lib curl in c++ disable printing
body: <p>i got a small program from  <a href="http://curl.haxx.se/" rel="noreferrer">http://curl.haxx.se/</a> and while i run it always prints the webpage how can i disable the printing function </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;curl/curl.h&gt;
  using namespace std;
  
  int main() {
      CURL *curl;
        CURLcode res;
  
        curl = curl_easy_init();
        if(curl) {
          curl_easy_setopt(curl, CURLOPT_URL, "http://google.com");
          curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION,1);
          res = curl_easy_perform(curl);
  
          /* always cleanup */
          curl_easy_cleanup(curl);
        }
        return 0;
  }
  </code></pre>