how can i pass an element of vector<char*> to a function which takes an argument of char* ?