apue error function file
this program prints the type of file for each command-line argument