### (){ CURL *curl; CURLM *mcurl; still_running = 1; curl_global_init(CURL_GLOBAL_DEFAULT); curl =curl_easy_init();(!curl) 1; mcurl =curl_multi_init();(!mcurl) 2; curl_easy_setopt(curl,CURLOPT_USERNAME,);curl_easy_setopt(curl,CURLOPT_PASSWORD,); curl_easy_setopt(curl,CURLOPT_URL,); curl_multi_add_handle(mcurl, curl); { CURLMcode mc =curl_multi_perform(mcurl, &still_running); (still_running) mc =curl_multi_poll(mcurl, NULL, 0, 1000, NULL); (mc); }(still_running); curl_multi_remove_handle(mcurl, curl);curl_multi_cleanup(mcurl);curl_easy_cleanup(curl);curl_global_cleanup(); 0;}
A real-world application will of course properly check every return value andexit correctly at the first serious error.