Skip to content

Instantly share code, notes, and snippets.

@famasoon
Last active March 25, 2016 12:52
Show Gist options
  • Save famasoon/5961cb8b1305fb01026a to your computer and use it in GitHub Desktop.
Save famasoon/5961cb8b1305fb01026a to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[]){
char name[10];
if(argc != 2){
printf("Usage: %s name\n", argv[0]);
exit(1);
}
strcpy(name, argv[1]);
printf("%s\n", name);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment