4 ms·
Void pointers mean no type safety, preventing a lot of potential compiler optimizations and static analysis checks. 99% of the time the right thing to do is ju
by woodman 11y ago
Void pointers mean no type safety, preventing a lot of potential compiler optimizations and static analysis checks. 99% of the time the right thing to do is just create a new type:
typedef struct Strref_t {
char* str;
size_t ref;
} Strref;
There, just pass a pointer of that type around.