roberto wrote:
If a void pointer is assigned an address of a particular struct type... and then you free it... is the memory allocated at the
address of this void pointer freed or would I be leaking memory?
In C, it's OK. In C++, it's OK only if the struct in question has a trivial destructor (basically, if the destructor does nothing).
Igor Tandetnik