/[PAMELA software]/yoda/techmodel/forroutines/tracker/readraw/readtrailer.c
ViewVC logotype

Diff of /yoda/techmodel/forroutines/tracker/readraw/readtrailer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6.0 by kusanagi, Tue Feb 7 17:11:11 2006 UTC revision 6.4 by pam-fi, Thu Nov 2 12:20:08 2006 UTC
# Line 56  void readtrailer_(unsigned short *traile Line 56  void readtrailer_(unsigned short *traile
56      int nbytes2=2;      int nbytes2=2;
57      char *buff=buffer;      char *buff=buffer;
58    
59      for (i=0;i<3;i++){      if( *curpos+(2*3)-1>*len ) {
60        getbytes_(&nbytes2,buff,curpos,&word[i]);        //  printf("readtrailer: Unexpected end of file \n");
61          *error=1;
       if( *curpos-1>*len ) {  
         printf("readtrailer: Unexpected end of file \n");  
         *error=1;  
62          return ;          return ;
       }  
63      }      }
64        
65        for (i=0;i<3;i++)
66            getbytes_(&nbytes2,buff,curpos,&word[i]);
67    
68        
69      for( i=0; i<3; i++) trailer[i]=word[i];      for( i=0; i<3; i++) trailer[i]=word[i];
70  /****************************************************************/  /****************************************************************/
71    

Legend:
Removed from v.6.0  
changed lines
  Added in v.6.4

  ViewVC Help
Powered by ViewVC 1.1.23