I have to test the function
std::vector<std::string> convert_arguments(int argc, char **argv) {
[some code]
return command_arguments;
};
that takes a pointer to an array of command arguments and returns a Vector containing those arguments. The function works well. But I'm having trouble constructing such a pointer myself. The array is an array of strings, i.e. an array of array of chars. As far as I know, the pointer is supposed to point to the first pointer of the pointers pointing to the first letters of the strings (that sounds quite strange). What I need is an exemplary pointer **argv that I can pass to the function to see if it works. I know that there are a lot of similar questions on the internet, but I couldn't really find an answer that works for me. I would be very thankful if you could help me out, because I've been looking for an answer for several hours.