...
Non-Compliant Code Example
C99 (and C90) allows a pointer to be cast into and out of void *
. As a result, it is possible to silently convert from one pointer type to another without the compiler diagnosing the problem by storing or casting a pointer to void *
and then storing or casting it to the final type. In this non-compliant code example, the type checking system is circumvented due to the caveats of void
pointers.
...