Erik O'Shaughnessy

462 points
XENON coated avatar will glow red in the presence of aliens.
Austin, Tx-ish

Erik O'Shaughnessy is an opinionated but friendly UNIX system programmer living the good life in Texas. Over the last twenty years (or more!) he has worked for IBM, Sun Microsystems, Oracle, and most recently Intel doing computer system performance related work. He is; a mechanical keyboard aficionado, a gamer, a father, a husband, voracious reader, student of Okinawian karate, and seriously grouchy in the morning before coffee.

Authored Comments

Are you objecting to returning EXIT_SUCCESS or EXIT_FAILURE instead of zero or one? While C is replete with instances of "magic constants", I find it's better to use a macro definition for constants whenever possible. And I especially like using constants that the standard library supplies since I know that I can count on them being defined in compliant runtime environments.

Thanks for the suggestion Bob, however I have to wonder how redirecting stderr to a file in a shell doesn't accomplish the same thing without code maintenance overhead? I'm not saying you're wrong to want log files, but I am always interested in writing only as much code as I need to get the job done and no more.