I have a function as follows -
long Read (char* databuf)
{
/* start missing */
databuf = new char [datasize];
file.read (databuf, datasize);
return datasize;
}
I call it as follows -
char* databuf = NULL;
long datasize = Read (databuf);
The problem is that databuf is still NULL after that call to Read(). I
understand why, but how should I do this?
Thanks,
Barry.