News for hackers. Stuff that matters.
Re:The Ten Commandments for C Programmers (1987) by glouwbug on Sunday May 24, 2020 @12:50AM (#23289191)
Generic data structures work great if they use a void* since malloc returns a void*. Just malloc your structs, and suddenly a single set of 10 or so functions can work with all data types to build queues, lists, hash maps, etc

There are no comments on this comment yet.