Practice program for the book Advanced Programming in the UNIX Environment:2nd Edition