what is a void* pointer?

Started by
9 comments, last by CTRL_ALT_DELETE 23 years, 2 months ago
I wrote a loader for a simple graphics format - and it used a void pointer. After the file header, all I had to do was allocate a buffer, read the data in, make a call to SetDIBitsToDevice, and free the data. So I used a void pointer.

I could have made it a typed pointer, but all that would mean was I had to typecast the result of malloc.

This topic is closed to new replies.

Advertisement