Original Post
hi
i have a function that has to be layed out the following way:
ReadFile(void *buffer)
{
fread(buffer,4,1,infile);
}
The problem is that i need to do this:
buffer = ~buffer;
but the "void" doesnt allow it. I cannot change it to char or anything as the varibale types that pass into the function MUST remain the same.
i tried doing this:
char tempbuf;
fread(tempbuf,4,1,infile);
tempbuf = ~tempbuf;
buffer = &tempbuf
.... but it compiles but when i run it there are runtime errors.
thanks for any help/advice.
cheers
Paul.