I need to pass in a char * in a function and have it set to a cstring value. I can properly set it as a string in the function, but it doesn\'t seem to print out correctly i
I just re-read your question.
You seem to have been hit by the pass by value, even if it is a pointer, problem. Also, is chunk null terminated?