Hi,
I have created a CString as:
Now, I want to change the string to: "He"Code:char* p = malloc(3); p[0] = '1' p[1] = '1' p[2] = '1'
But this reallocates the pointer adress. How to go around this?Code:char* p = "He"
Hi,
I have created a CString as:
Now, I want to change the string to: "He"Code:char* p = malloc(3); p[0] = '1' p[1] = '1' p[2] = '1'
But this reallocates the pointer adress. How to go around this?Code:char* p = "He"