3 ms·
So roll your own struct based solution to where the size is now state. If you're talking about the old stdlib.h calls, don't use them with blind pointers where
by ArkyBeagle 11y ago
So roll your own struct based solution to where the size is now state.
If you're talking about the old stdlib.h calls, don't use them with blind pointers where the size isn't known. I'd say use the "n" versions but you don't even have to do that.
'C' gets easier when you do faux RAII and make "objects" with internal state, at least think about not using dynamic allocation for everything and think a little bit about what might make the API usable by the extremely lazy.