Skip to content

Instantly share code, notes, and snippets.

@bortzmeyer
Created March 17, 2010 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bortzmeyer/335753 to your computer and use it in GitHub Desktop.
Save bortzmeyer/335753 to your computer and use it in GitHub Desktop.
CURL *curl;
char errbuf[1024];
curl = curl_easy_init();
if (! curl) {
fprintf(stderr, "Cannot initialize curl\n");
return 1;
}
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errbuf);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment