#include "type_hyd.h" #include "varext.h" void file_hnd(char *argv[]){ short int namlen; /*** read TYPE_HYD.SET ***/ readline("USE_LO_A",&use_lo_a,"%d"); readline("USE_HI_A",&use_hi_a,"%d"); readline("USE_LO_B",&use_lo_b,"%d"); readline("USE_HI_B",&use_hi_b,"%d"); /*** open *.hyd file ***/ if ((hyd_fil=fopen(argv[1],"rb"))==NULL){ printf("could not open %s \n",argv[1]); perror(""); exit(0); } /*** open *.hd file ***/ namlen=strlen(argv[1]); memcpy(head_fil,argv[1],namlen); memcpy(&head_fil[namlen-3],"hd",2); head_fil[namlen-1]=NULL; if ((headfil=fopen(head_fil,"rb"))==NULL){ printf("could not open %s \n",head_fil); perror("");exit(0); } }