"What is the best way to assign this pointer to the required item?"
By casting it to a void pointer. Srsly, all pointers are equal in their bitdepth and endianess (at least throughout one application run), no matter of their name. Its just to make it more convenient for the user, but in fact you could do everything with a typeless void pointer as well.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com