Created
February 9, 2014 17:50
-
-
Save xk/8902956 to your computer and use it in GitHub Desktop.
Cross-function var manipulation
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
//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