News for hackers. Stuff that matters.
Re:My personal C coding style as of late 2023 by kovacs_x on Monday October 09, 2023 @08:15AM (#37819631)
sure... and what about time spent debugging yet another unallocated/untimely freed/off by 1 pointer mistake?

ps. you know you can write C++ code that is functional and use free functions primarily instead of putting everything in classes?

Re:My personal C coding style as of late 2023 by habibur on Monday October 09, 2023 @11:49AM (#37821664)
you can run valgrind and it will just point to you "you freed the memory on this line and then tried to reused it 10 lines bellow here, fix it." -- every time.

And once you fix it, you have built a light weight library that you can use from any other language.

Also these pointer manipulation is what gives C its power.