Rename ffopen and ffclose to gmx_ff*.
[alexxy/gromacs.git] / src / contrib / do_shift.c
index 7e567ac2f46e0ba0346c46a6397a94c5f164410d..bcc227c353e7dc46abf3ce82d64bc579b2cf18a8 100644 (file)
@@ -61,7 +61,7 @@ void cat(FILE *out,char *fn,real t)
   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);
@@ -71,7 +71,7 @@ void cat(FILE *out,char *fn,real t)
   /*if ((int)strlen(buf) > 0) 
     fprintf(out,"%s\n",buf);*/
   fflush(out);
-  ffclose(in);
+  gmx_ffclose(in);
 }
 
 int main(int argc,char *argv[])
@@ -158,10 +158,10 @@ 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");
@@ -182,7 +182,7 @@ int main(int argc,char *argv[])
     }
   } while(read_next_x(status,&t,natoms,x,box));
   close_trj(status);
-  ffclose(out);
+  gmx_ffclose(out);
   
   gmx_thanx(stderr);