btw. this is how I would make the code more robust: https://lore.kernel.org/lkml/20220225185431.2617232-4-max.ke...
I'm a C++ guy, and the lack of constructors is one of many things that bothers me with C.
I'm a C++ guy, and the lack of constructors is one of many things that bothers me with C.