Hi,

I have created a CString as:

Code:
char* p = malloc(3);
p[0] = '1'
p[1] = '1'
p[2] = '1'
Now, I want to change the string to: "He"

Code:
char* p = "He"
But this reallocates the pointer adress. How to go around this?