@h0mbre_
what’s C codebase/project you’d show to people as an examplar of good C programming practices? link
Pick any Rust codebase, use that as an example on how to do C :P
@andersonc0d3 vsftpd is cool
@_maurosoria I like socat code.
@richinseattle Linux kernel 2.x (I specify that older version cuz I read a lot of it, and only spot reads since) and redis (only nit is the function casing)
@ivansprundel OpenBSD code, stuff written by djb, and vsftpd. None of them are perfect, but they're miles ahead of what you usually see.
-
Apache httpd, subversion, Glib/Gtk, CPython.
-
llm.c from Karpathy
-
Parts of OpenBSD or PostgreSQL
-
Flipper zero firmware, I don’t know if it has good practices but I think their architecture is intuitive.
-
I like Wireshark's, I can't compare it with other C foss projects because I haven't seen that many, you can start reading it really easily by just jumping into a packet dissector and start hacking it
-
Even 20+ years later: djb‘s qmail, daemontools, ucspi- tcp, djbdns (djp x 2)
-
Meterpreter
-
Systemd. It's quite well-organized
-
Suckless tools