title: Can someone explain the arguments to write function used for the curl option CURLOPT_WRITEFUNCTION
body: <p>From <a href="http://curl.haxx.se/libcurl/c/libcurl-tutorial.html" rel="noreferrer">http://curl.haxx.se/libcurl/c/libcurl-tutorial.html</a>: </p>
  
  <blockquote>
    <p>So, you write your own function that matches this prototype: </p>
  
  <pre><code> size_t write_data(void *buffer, size_t size, size_t nmemb, void *userp); 
  </code></pre>
    
    <p>You tell libcurl to pass all data to this function by issuing a
    function similar to this: </p>
  
  <pre><code> curl_easy_setopt(easyhandle, CURLOPT_WRITEFUNCTION, write_data);
  </code></pre>
  </blockquote>
  
  <p>Can someone explain what the arguments <code>size</code> and <code>nmemb</code> stand for? Is <code>size</code> the number of characters in the response? Then what is <code>nmemb</code>? </p>