Skip to content

Commit

Permalink
only hw
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 11, 2024
1 parent 198bd8c commit d7cb559
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions example.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
* All curl_easy_setopt() options are documented at:
* https://curl.se/libcurl/c/curl_easy_setopt.html
************************************************************************/
#include "curl/curl.h"
// #include <curl/curl.h>
#include <stdio.h>

int main(int argc, char *argv[]) {
CURLcode ret;
CURL *hnd;
// CURLcode ret;
// CURL *hnd;

hnd = curl_easy_init();
printf("Hello, World!\n");

// hnd = curl_easy_init();
// curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
// curl_easy_setopt(hnd, CURLOPT_URL, "http://example.com");
// curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L);
Expand Down Expand Up @@ -41,9 +44,9 @@ int main(int argc, char *argv[]) {
// fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(ret));
// }

curl_easy_cleanup(hnd);
hnd = NULL;
// curl_easy_cleanup(hnd);
// hnd = NULL;

return (int)ret;
// return (int)ret;
}
/**** End of sample code ****/

0 comments on commit d7cb559

Please sign in to comment.