From 10a2efb647639f53a4f2ad5f33b46b36ef7e9df6 Mon Sep 17 00:00:00 2001 From: LiTekho Date: Sun, 4 Jun 2023 21:27:27 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=20?= =?UTF-8?q?=D1=81=20curl=20example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 6f118b9..6a69e99 100644 --- a/main.cpp +++ b/main.cpp @@ -42,11 +42,17 @@ input_data(istream& in, bool prompt) int main(int argc, char* argv[]) { if (argc > 1) + { + CURL *curl = curl_easy_init(); + if(curl) { - for (size_t i = 0; i < argc; i++) - cerr << "argv["<