example for Advanced Programming in the Unix Environment Second edition