Skip to content

Instantly share code, notes, and snippets.

@AndyNovo
Created October 31, 2016 15:13
Show Gist options
  • Save AndyNovo/11d0a4b453dc8e607dbaae86c7d690c3 to your computer and use it in GitHub Desktop.
Save AndyNovo/11d0a4b453dc8e607dbaae86c7d690c3 to your computer and use it in GitHub Desktop.
#include <cstring>
#include <stdexcept>
void go(char *data) {
char name[64];
strcpy(name, data);
}
int main(int argc, char **argv) {
go(argv[1]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment