Original Post
class
char *pText
...
function (char *txt)
{
pText=txt;
is this a safe way to store "" string data?
txt exists only within the function, and pText is a pointer to an adress. Does this mean that the string which pText points to can be overwritten if unlucky, or is the space reserved permanently after the pointer pText is assigned to the string data?
Thanks in advance
Mattias