/drs/drs.C |
---|
141,7 → 141,7 |
time_t t0,told; |
time(&t0); |
told=t0-1; |
int posrec[2]; |
int posrec[9]; |
while(!feof(fin)) { |
if (iev>=nev) break; |
stat=fread(recid,1,4,fin); |
151,11 → 151,15 |
} |
switch (recid[0]) { |
case 'P': // position record |
stat=fread(posrec,1,8,fin); |
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); |
break; |
} |
case 'D': // DRS |
version = atoi(&recid[3]); |
break; |