L
L
linuxoid_inrus2020-10-24 11:02:18
C++ / C#
linuxoid_inrus, 2020-10-24 11:02:18

How to remove \n when defining a char array?

char url[228];
           /* strcat(url, VK_API_URL);
            strcat(url, "&user_id=");
            strcat(url, target.at(j).c_str());
            strcat(url, "&text=test&random_id=0&access_token=");
            strcat(url, accounts.at(i).c_str());
            strcat(url, "&v=5.120");*/


In debugger:
DHWN5gp.png

Curl doesn't work because of this

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Pokrovsky, 2020-10-24
@Makaroshka007

maybe not strcat(url, VK_API_URL);buturl = VK_API_URL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question