3 ms·
The things you've described are either not required or often considered bad style in C even though they are valid C. Casting to/from `void *` isn't needed in C
by codys 3y ago
The things you've described are either not required or often considered bad style in C even though they are valid C.
Casting to/from `void *` isn't needed in C, and is commonly against coding conventions, like those used by the Linux kernel.
One would generally return `NULL` instead of `0` as `void *`.
But yes, it is possible to write some funky C code that could be technically correct but still not be considered good.