execv() const-ness


i mostly execv() duty c++ nonetheless arguments c++ strings. annoys me i can't this:



const bake *args[4];

args[0] = "/usr/bin/whatever";
args[1] = filename.c_str();
args[2] = someparameter.c_str();
args[3] = 0;

execv(args[0], args);


this doesn't accumulate since execv() takes char *const argv[] congruous const bake * i have duplicate std::strings impression arrays controlling strdup() pain.



does anyone know reason ?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members