exercise in learn C the hard way