Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I misunderstood the question then, since I thought it was about learning about the newer language features.

C coding standards differ quite a lot, and unfortunately I can't point out any software that has standards developed for safety.

As to still try and be helpful: I've enjoyed reading nullprograms blog[0] where he looks into interesting ways to make C more useable (although he tends to replace the entire standard library for reasons highlighted here[1])

There is some must avoid functions (mostly string functions) and a good list of them has been compiled in the git project repository[2].

I've tried looking up the misra C guidelines but they were hard to find or (if I remember correctly) had to be paid for or something like that

[0] https://nullprogram.com [1] https://nullprogram.com/blog/2023/02/11/ [2] https://github.com/git/git/blob/master/banned.h



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: