Last active
March 25, 2016 12:52
-
-
Save famasoon/5961cb8b1305fb01026a 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
#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