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

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

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

revision 1.1 by kusanagi, Tue Jul 6 12:20:23 2004 UTC revision 4.0 by kusanagi, Sun Mar 6 04:33:02 2005 UTC
# Line 51  void findstart_(int *error, int *fd) Line 51  void findstart_(int *error, int *fd)
51      do {      do {
52          nread=read(*fd, &word, 2); //reads 16 bits          nread=read(*fd, &word, 2); //reads 16 bits
53          if(nread == 0) {          if(nread == 0) {
54              printf("findstart: Unexpected end of file %d at %d \n",*fd,nread);              //printf("findstart: Unexpected end of file %d at %d \n",*fd,nread);
55              *error=1;              *error=1;
56              return ;              return ;
57          }          }
58          if(nread != 2) {          if(nread != 2) {
59              printf("findstart: Error on reading: bytes read -> nread = %d \n",nread);              //printf("findstart: Error on reading: bytes read -> nread = %d \n",nread);
60              *error=-1;              *error=-1;
61              return ;              return ;
62          }          }

Legend:
Removed from v.1.1  
changed lines
  Added in v.4.0

  ViewVC Help
Powered by ViewVC 1.1.23