News for hackers. Stuff that matters.
Re:Collections-C, generic data structures for C by woodman on Monday March 14, 2016 @02:33AM (#11281379)
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.

There are no comments on this comment yet.