Rev 199 | Rev 204 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 199 | Rev 202 | ||
---|---|---|---|
Line 135... | Line 135... | ||
135 | 135 | ||
136 | iev=0; |
136 | iev=0; |
137 | time_t t0,told; |
137 | time_t t0,told; |
138 | time(&t0); |
138 | time(&t0); |
139 | told=t0-1; |
139 | told=t0-1; |
- | 140 | int posrec[2]; |
|
140 | while(!feof(fin)) { |
141 | while(!feof(fin)) { |
141 | if (iev>=nev) break; |
142 | if (iev>=nev) break; |
142 | stat=fread(recid,1,4,fin); |
143 | stat=fread(recid,1,4,fin); |
143 | if (debug) { |
144 | if (debug) { |
144 | if (recid[1]=='#') printf("%c%c%u\n",recid[0],recid[1],srecid[1]); |
145 | if (recid[1]=='#') printf("%c%c%u\n",recid[0],recid[1],srecid[1]); |
145 | else printf("%s\n",recid ); |
146 | else printf("%s\n",recid ); |
146 | } |
147 | } |
147 | switch (recid[0]) { |
148 | switch (recid[0]) { |
- | 149 | ||
- | 150 | case 'P': // position record |
|
- | 151 | stat=fread(posrec,1,8,fin); |
|
- | 152 | ||
- | 153 | break; |
|
- | 154 | ||
148 | case 'D': // DRS |
155 | case 'D': // DRS |
149 | version = atoi(&recid[3]); |
156 | version = atoi(&recid[3]); |
150 | break; |
157 | break; |
151 | case 'T': // TIME |
158 | case 'T': // TIME |
152 | switch (recid[1]) { |
159 | switch (recid[1]) { |