| 2523 | | if( punch.ipPnunit[i] != NULL && !lgNoClobber[i] ) |
| 2524 | | { |
| | 2523 | /* if lgFinal is true, we close everything, no matter what. |
| | 2524 | * this means ignoring "no clobber" options */ |
| | 2525 | if( punch.ipPnunit[i] != NULL && ( !lgNoClobber[i] || lgFinal ) ) |
| | 2526 | { |
| | 2527 | /* Test that any FITS files are the right size! */ |
| | 2528 | if( punch.lgFITS[i] ) |
| | 2529 | { |
| | 2530 | /* \todo 2 This overflows for file sizes larger (in bytes) than |
| | 2531 | * a long int can represent (about 2GB on most 2007 systems) */ |
| | 2532 | fseek(punch.ipPnunit[i], 0, SEEK_END); |
| | 2533 | long file_size = ftell(punch.ipPnunit[i]); |
| | 2534 | if( file_size%2880 ) |
| | 2535 | { |
| | 2536 | fprintf( ioQQQ, " PROBLEM FITS file is wrong size!\n" ); |
| | 2537 | } |
| | 2538 | } |
| | 2539 | |