13 inline void new_argcv(
const std::vector<std::string>& a_args,
int& a_argc,
char**& a_argv){
15 a_argc = (int)a_args.size();
21 typedef char* cstring;
22 a_argv =
new cstring[a_argc];
23 for(
int index=0;index<a_argc;index++) {
24 const std::string& arg = a_args[index];
25 a_argv[index] =
new char[arg.size()+1];
26 ::strcpy(a_argv[index],arg.c_str());
31 for(
int index=0;index<a_argc;index++)
delete [] a_argv[index];