News for hackers. Stuff that matters.
Re:My first C program: simple process supervisor like daemon... by sp332 on Friday May 25, 2012 @11:36AM (#4023916)
Agreed. Even literate programming (where the comments often outweigh the code) doesn't stop to explain #include <stdlib.h> !

Edit: ok I forgot this was his first C program.

Re:My first C program: simple process supervisor like daemon... by tptacek on Friday May 25, 2012 @12:22PM (#4024169)
No, but you can see from that page that if you wanted to write a simple C program as a document on how C works that the format works nicely for it.

It's his first C program. Mine were similarly prolix. Another habit I got out of after a year or so was wrapping every use of every new API in a me-friendly wrapper function. Also, of writing my own linked list code over and over again.