/****name.c - This program has inconsistent behavior, depending**** ****on the existence or non-exsistence of the file whose name is*** ***********stored in the character string variable "name"*********/ #include main(void) { char name[10]; int i, fp[10]; for (i=0; i <= 9; i++) { sprintf(name, "temp_file%d",i); printf("%s\n",name); if (fp[i]= creat(name,0644) == -1) { printf("error\n"); exit(1); } } system("ls -l temp*"); exit(0); }