Home | History | Annotate | Download | only in ext2ed

Lines Matching refs:fp

145 	FILE *fp;
147 if ((fp=fopen (LogFile,"a+"))==NULL) {
154 fprintf (fp,"\n----- EXT2ED log begin -----\n\n");
155 fprintf (fp,"Time: %s\nDevice: %s\n",ctime ((time_t *) &current_time),device_name);
156 fprintf (fp,"Offset: %lu\nLength: %lu\n",offset,length);
162 refresh_command_win ();fclose (fp);return (0);
166 fclose (fp);return (0);
169 fprintf (fp,"\nOriginal data:\n\n");
172 if (i%16==0 && i!=0) fprintf (fp,"\n");
173 fprintf (fp,"%02x ",original [i]);
176 fprintf (fp,"\n\nNew data:\n\n");
179 if (i%16==0 && i!=0) fprintf (fp,"\n");
180 fprintf (fp,"%02x ",buffer [i]);
183 fprintf (fp,"\n----- EXT2ED log end -----\n");
185 fclose (fp);