Created
November 8, 2010 12:48
-
-
Save crabtw/667664 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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