code:final
Этот коммит содержится в:
1
main.cpp
1
main.cpp
@@ -40,6 +40,7 @@ download(const string& address) {
|
|||||||
if(curl) {
|
if(curl) {
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, address);
|
curl_easy_setopt(curl, CURLOPT_URL, address);
|
||||||
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, input_data);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer);
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
if(res!=0){
|
if(res!=0){
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user