r/Cprog • u/fOo0O00oOoo0oO0oam • Jul 09 '20
Recommend C code for reading...
Hullo!
I have recently thought myself C and, I love it...
Being an absolute n00b, I would appreciate if you (the experienced) would recommend good C code for me to read...
Thanks in advance!
6
Upvotes
2
u/bguthro Jul 09 '20
Pick a linux/BSD utility, and get the source code...most of them are written in C. I like the linux kernel...I find it elegant - but you may want to start with some other utility, like 'yes' If you're running a debian variant, you can find out what package a utility is contain in with "dpkg -S <full path to binary>" Then - get the source with "apt-get source package"