char anm[24],rnm[24];
double f1,f2,f3,f4,f5,f6;
- in=ffopen(fn,"r");
+ in=gmx_ffopen(fn,"r");
while ((ptr=fgets2(buf,255,in)) != NULL) {
sscanf(buf,"%d%d%s%s%lf%lf%lf%lf%lf%lf",
&anr,&rnr,rnm,anm,&f1,&f2,&f3,&f4,&f5,&f6);
/*if ((int)strlen(buf) > 0)
fprintf(out,"%s\n",buf);*/
fflush(out);
- ffclose(in);
+ gmx_ffclose(in);
}
int main(int argc,char *argv[])
do {
if (t >= nt) {
rm_pbc(&(top->idef),top->atoms.nr,box,x,x_s);
- fp=ffopen(pdbfile,"w");
+ fp=gmx_ffopen(pdbfile,"w");
write_pdbfile_indexed(fp,"Generated by do_shift",
atoms,x_s,box,0,-1,gnx,index);
- ffclose(fp);
+ gmx_ffclose(fp);
if ((tot=popen(total,"w")) == NULL)
perror("opening pipe to total");
}
} while(read_next_x(status,&t,natoms,x,box));
close_trj(status);
- ffclose(out);
+ gmx_ffclose(out);
gmx_thanx(stderr);