title: How do I use libcurl to printf a remote FTP directory listing?
body: <p>I think I'm supposed to use <code>CURLOPT_DIRLISTONLY</code> but I'm not really sure how to proceed. </p>
  
  <pre><code>CURLcode curl_easy_setopt(CURL *handle, CURLOPT_DIRLISTONLY, long listonly);
  </code></pre>
  
  <p>I'm not sure how to make the call to actually print the list.</p>