Created
September 6, 2016 09:44
-
-
Save jjl/1ba44f54195502a3d83a329e5a5d97fc to your computer and use it in GitHub Desktop.
boilerplate yay
This file contains hidden or 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
#include <stdlib.h> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
int main (int argc, char *argv[]) { | |
vector<string> args; | |
for (int i = 0; i < argc; i++) { | |
args.push_back(string(argv[i])); | |
free(argv[i]); | |
argv[i]=0; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment