Skip to content

Instantly share code, notes, and snippets.

@crabtw
Created November 8, 2010 12:48
Show Gist options
  • Save crabtw/667664 to your computer and use it in GitHub Desktop.
Save crabtw/667664 to your computer and use it in GitHub Desktop.
char** vectorToCharPtrs(vector<const char*> args) {
int size = args.size;
char **argv = new char*[size];
for(int c = 0; c < size; ++c) {
argv[c] = args[c];
}
return argv;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment