Skip to content

Instantly share code, notes, and snippets.

@mvidalgarcia
Created February 25, 2016 19:37
Show Gist options
  • Save mvidalgarcia/a36179b547a88022a851 to your computer and use it in GitHub Desktop.
Save mvidalgarcia/a36179b547a88022a851 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string.h>
void func(char *str)
{
char buffer[132]; /* adjust size of buffer to suit */
strcpy (buffer,str);
}
void main (int argc, char *argv[])
{
func(argv[1]);
printf("%s\n", "Executed Normally");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment