Skip to content

Instantly share code, notes, and snippets.

@jjl
Created September 6, 2016 09:44
Show Gist options
  • Save jjl/1ba44f54195502a3d83a329e5a5d97fc to your computer and use it in GitHub Desktop.
Save jjl/1ba44f54195502a3d83a329e5a5d97fc to your computer and use it in GitHub Desktop.
boilerplate yay
#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