3 ms·
void * is very useful as an opaque pointer type. For example, it's used all over the place in collection implementations and user-defined arguments (e.g., callb
by Cyph0n 6y ago
void * is very useful as an opaque pointer type. For example, it's used all over the place in collection implementations and user-defined arguments (e.g., callbacks, pthread_create).
It might not be used much in the stdlib (which is relatively small!), but libraries and applications rely on void * heavily in my experience.