Skip to content

Instantly share code, notes, and snippets.

@mvidalgarcia
Created February 25, 2016 18:44
Show Gist options
  • Save mvidalgarcia/32836a8093a65a4b9898 to your computer and use it in GitHub Desktop.
Save mvidalgarcia/32836a8093a65a4b9898 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string.h>
void func(char *str)
{
char buffer[100]; /* 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