-APUE-:
ex4.11, modify fig4.22 using chdir.