Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 205 → Rev 206

/drs/drs.C
141,7 → 141,7
time_t t0,told;
time(&t0);
told=t0-1;
int posrec[9];
int posrec[9];
while(!feof(fin)) {
if (iev>=nev) break;
stat=fread(recid,1,4,fin);
153,11 → 153,16
case 'P':{ // position record
int len;
stat=fread(&len,1,4,fin);
if (len>0 && len<10)
stat=fread(posrec,1,len,fin);
else
printff("Wrong buffer length %d\n". len);
stat=fread(&len,1,4,fin);
if (len>0 && len<37) {
stat=fread(posrec,1,len,fin);
if (recid[3]=='R')
printf("Position len=%d x=%d y=%d ix=%d iy=%d\n", len, posrec[0], posrec[1], posrec[3], posrec[4]);
else
printf("Position record buffer length %d\n", len);
} else {
printf("Wrong buffer length %d\n", len);
}
break;
}
case 'D': // DRS