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

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

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

revision 1.1.1.1 by kusanagi, Tue Jul 6 12:20:23 2004 UTC revision 4.4 by kusanagi, Sat May 28 10:44:12 2005 UTC
# Line 29  void hunpacker_(unsigned short *buffer, Line 29  void hunpacker_(unsigned short *buffer,
29      nhead = 13;  /* packed */      nhead = 13;  /* packed */
30      nread=read(*fd, buffer_temp, 2*nhead);      nread=read(*fd, buffer_temp, 2*nhead);
31      if( nread==0 ) {      if( nread==0 ) {
32          printf("hunpacker: Unexpected end of file %d at %d \n",*fd,nread);          //printf("hunpacker: Unexpected end of file %d at %d \n",*fd,nread);
33          *error=1;          *error=1;
34          return ;          return ;
35      }      }
36      if ( nread != 2*nhead) {      if ( nread != 2*nhead) {
37          printf("hunpacker: Error on reading: nread = %d \n",nread);          //printf("hunpacker: Error on reading: nread = %d \n",nread);
38          *error=-1;          *error=-1;
39          return ;          return ;
40      }      }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.4.4

  ViewVC Help
Powered by ViewVC 1.1.23