From <c primer plus> exercises