IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 16, 2010, 6:44:32 AM (16 years ago)
Author:
eugene
Message:

updates for large files (fseeok, sizes to off_t, etc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/largefiles.20100314/Ohana/src/tools/src/ckfits.c

    r15487 r27295  
    44int main (int argc, char **argv) {
    55
    6   int i, Nbytes, nbytes, Ndata, Ntotal, nskip, status;
     6  off_t i, Nbytes, nbytes, Ndata, Ntotal, nskip;
     7  int status;
    78  Header header;
    89  FILE *f;
     
    2627
    2728  nbytes = Ntotal - Ndata;
    28   nskip = Ndata + header.size;
     29  nskip = Ndata + header.datasize;
    2930
    3031  f = fopen (argv[1], "r");
     
    3536
    3637  ALLOCATE (buffer, char, MAX (nbytes, 1));
    37   fseek (f, nskip, SEEK_SET);
     38  fseeko (f, nskip, SEEK_SET);
    3839  Nbytes = fread (buffer, 1, nbytes, f);
    3940  fclose (f);
Note: See TracChangeset for help on using the changeset viewer.