Skip to content

Instantly share code, notes, and snippets.

@tjfontaine tjfontaine/test.c
Created Jun 11, 2013

Embed
What would you like to do?
#include <stdio.h>
static char foo[] = "hello world";
void setme(char **data) {
(*data) = foo;
}
int main() {
char *newdata = NULL;
setme(&newdata);
printf("%s\n", newdata);
}
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.