Lines Matching refs:f
228 FILE* f = NULL; in main() local
282 f = fopen( argv[2], "wb" ); in main()
283 if ( !f ) { in main()
301 if ( write_sector( f, s_boot_sector ) ) goto FailWrite; in main()
302 if ( write_sector( f, s_fsinfo_sector ) ) goto FailWrite; in main()
304 if ( write_empty( f, BACKUP_BOOT_SECTOR - 2 ) ) goto FailWrite; in main()
305 if ( write_sector( f, s_boot_sector ) ) goto FailWrite; in main()
306 if ( write_sector( f, s_fsinfo_sector ) ) goto FailWrite; in main()
307 if ( write_empty( f, RESERVED_SECTORS - 2 - BACKUP_BOOT_SECTOR ) ) goto FailWrite; in main()
309 else if ( write_empty( f, RESERVED_SECTORS - 2 ) ) goto FailWrite; in main()
311 if ( write_sector( f, s_fat_head ) ) goto FailWrite; in main()
312 if ( write_empty( f, sectors_per_fat-1 ) ) goto FailWrite; in main()
314 if ( write_sector( f, s_fat_head ) ) goto FailWrite; in main()
315 if ( write_empty( f, sectors_per_fat-1 ) ) goto FailWrite; in main()
317 if ( write_empty( f, sectors_per_disk - RESERVED_SECTORS - 2*sectors_per_fat ) ) goto FailWrite; in main()
319 fclose(f); in main()
323 if (f != NULL) { in main()
324 fclose(f); in main()