Skip to content

Instantly share code, notes, and snippets.

@ShivamShrirao
Created March 7, 2018 19:46
Show Gist options
  • Save ShivamShrirao/7e6e1c1da855d188828457c2059603a7 to your computer and use it in GitHub Desktop.
Save ShivamShrirao/7e6e1c1da855d188828457c2059603a7 to your computer and use it in GitHub Desktop.
#include<stdio.h>
#include<string.h>
int main(int argc, char *argv[])
{
char buf[100];
strcpy(buf,argv[1]);
printf("Input was: %s\n",buf);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment