I have declared the following variable:
char * previous;
I have allocated space for one chat to it:
previous = malloc(1);
I have initialized it as:
I want to pass it to a function that will change its size using malloc and change its contents by copying another string to it:
Now when I've returned from the function previous should be containing the string.
How am I going to pass the pointer to this function in order to achieve this???
I hope you all understand what I mean..
Thanx in advance..