Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.