Lines Matching refs:f
158 FILE *f = fopen(path, "rb"); in load_file() local
159 if (f == NULL) { in load_file()
164 xfseek(f, 0, SEEK_END); in load_file()
165 *size = ftell(f); in load_file()
171 rewind(f); in load_file()
179 if (fread(*ptr, *size, 1, f) != 1) { in load_file()
184 fclose(f); in load_file()
222 FILE *f = fopen(path, "wb"); in output_write() local
223 if (f == NULL) { in output_write()
234 xfseek(f, file_ptr, SEEK_SET); in output_write()
239 xfwrite(sp->pm_data, sp->pm_size, f); in output_write()
243 xfseek(f, file_ptr, SEEK_SET); in output_write()
248 xfwrite(sp->img_data, sp->img_size, f); in output_write()
259 xfseek(f, 0, SEEK_SET); in output_write()
263 xfwrite(&sp_header_info, sizeof(struct sp_pkg_header), f); in output_write()
269 fclose(f); in output_write()