News for hackers. Stuff that matters.
Re:Fixing C by ArkyBeagle on Tuesday April 12, 2016 @01:55PM (#11481885)
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.

There are no comments on this comment yet.