Skip to content

Instantly share code, notes, and snippets.

@xk
Created February 9, 2014 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xk/8902956 to your computer and use it in GitHub Desktop.
Save xk/8902956 to your computer and use it in GitHub Desktop.
Cross-function var manipulation
//2014-02-09 jorge@jorgechamorro.com
//Cross-function var manipulation
#include <stdio.h>
#include <string.h>
void uno () {
char* b= (char*) &b;
while (strncmp("Ehh", b, 3)) b++;
strcpy(b, "GeorgeOfTheJungle");
}
int main () {
char a[18]= "EhhQuePassaTronco";
uno();
printf("%s\n", a);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment