I\'ve been looking at Advanced Linux Programming by Mitchell, Oldham and Samuel. I\'ve seen in the section on pthreads something about void pointers and casting tha
No need to cast from or to a pointer to void in C:
6.3.2.3 Pointers
1 A pointer to void may be converted to or from a pointer to any incomplete or object type. A pointer to any incomplete or object type may be converted to a pointer to void and back again; the result shall compare equal to the original pointer.
The only exceptions from this are
"%p" conversion specifier as it's only defined for void *.intptr_t or uintptr_t back to a void *.