modified open_all to open *.c files