- Timestamp:
- Mar 16, 2010, 6:44:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/largefiles.20100314/Ohana/src/tools/src/ckfits.c
r15487 r27295 4 4 int main (int argc, char **argv) { 5 5 6 int i, Nbytes, nbytes, Ndata, Ntotal, nskip, status; 6 off_t i, Nbytes, nbytes, Ndata, Ntotal, nskip; 7 int status; 7 8 Header header; 8 9 FILE *f; … … 26 27 27 28 nbytes = Ntotal - Ndata; 28 nskip = Ndata + header. size;29 nskip = Ndata + header.datasize; 29 30 30 31 f = fopen (argv[1], "r"); … … 35 36 36 37 ALLOCATE (buffer, char, MAX (nbytes, 1)); 37 fseek (f, nskip, SEEK_SET);38 fseeko (f, nskip, SEEK_SET); 38 39 Nbytes = fread (buffer, 1, nbytes, f); 39 40 fclose (f);
Note:
See TracChangeset
for help on using the changeset viewer.
