I have two functions:
void getinfo(char *test) // test is initialised with some text
void setinfo(char *test) // the value gained from getinfo is supplied here
eg:
// first I get the information
char *info = NULL;
getinfo(&info);
// then i use the information
setinfo(info);
// the output that setinfo() gives me appears garbled
info = !@h^
this isn't the exact code, but i don't want to make the problem specific to what I'm doing. I'm assuming that there is something wrong with my syntax and not the logic?
is this totally confusing? should i paste the original code?
