Set argument pointer to point to new memory inside a function (without returning it) IN C
- by user321605
Hello,
Hopefully my title was descriptive enough to attract the right help.
I want to write a function that will return 1 thing, and modify a provided pointer in another.
My current function declaration is . . .
char * afterURL replaceURLS(char * body)
What I want to do is copy all of body's data into a new string, and set body to point to this new data. I then want afterURL to point to a location within the new string.
My issue is getting the actual pointer that is passed in to this function to point to the new data.
Thanks in advance!
Rob