46 static short int i, i_, ii, ndurval, nexval, npeval, nproval, nsenval,
48 char temp_buff[20], buff_temp[200];
74 printf(
"\nNUM_PEVAL = %d",npeval);
75 printf(
"\nNUM_DURVAL = %d",ndurval);
76 printf(
"\nNUM_TSVAL = %d",ntsval);
77 printf(
"\nNUM_EXVAL = %d",nexval);
78 printf(
"\nNUM_PROVAL = %d",nproval);
79 printf(
"\nNUM_SENVAL = %d",nsenval);
85 for(
i = 1;
i <= 6;
i++ )
96 while ( (fgets(buff_temp,
sizeof(buff_temp),
fp_.
kchn)) != NULL )
98 if (
strpat(buff_temp,
"*1",
'$',
'%') >= 0 )
105 if (
i > npeval )
goto L_9000;
109 if ( notfound )
goto L_9000;
118 if(
i > npeval )
goto L_9010;
119 while ( (fgets(buff_temp,
sizeof(buff_temp),
fp_.
kchn)) != NULL )
122 printf(
"\n %s",buff_temp);
123 if (
strpat(buff_temp,
"*2",
'$',
'%') >= 0 )
132 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
137 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
140 memset(buff_temp,0,
sizeof(buff_temp));
154 if(
i > ndurval )
goto L_9020;
155 while ( (fgets(buff_temp,
sizeof(buff_temp),
fp_.
kchn)) != NULL )
158 printf(
"\n %s",buff_temp);
159 if (
strpat(buff_temp,
"*3",
'$',
'%') >= 0 )
168 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
172 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
175 memset(buff_temp,0,
sizeof(buff_temp));
190 if(
i > ntsval )
goto L_9030;
192 while ( (fgets(buff_temp,
sizeof(buff_temp),
fp_.
kchn)) != NULL )
195 printf(
"\n %s",buff_temp);
196 if (
strpat(buff_temp,
"*4",
'$',
'%') >= 0 )
205 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
209 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
212 memset(buff_temp,0,
sizeof(buff_temp));
227 if(
i > nexval )
goto L_9040;
228 while ( (fgets(buff_temp,
sizeof(buff_temp),
fp_.
kchn)) != NULL )
231 printf(
"\n %s",buff_temp);
232 if (
strpat(buff_temp,
"*5",
'$',
'%') >= 0 )
241 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
245 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
248 memset(buff_temp,0,
sizeof(buff_temp));
262 if(
i > nproval )
goto L_9050;
264 while ( (fgets(buff_temp,
sizeof(buff_temp),
fp_.
kchn)) != NULL )
267 printf(
"\n %s",buff_temp);
268 if (
strpat(buff_temp,
"*6",
'$',
'%') >= 0 )
276 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
280 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
283 memset(buff_temp,0,
sizeof(buff_temp));
300 memset (temp_buff,0,
sizeof(temp_buff));
301 if(
i > nsenval )
goto L_9060;
303 while ( (fgets(buff_temp,
sizeof(buff_temp),
fp_.
kchn)) != NULL )
307 printf(
"\n %s",buff_temp);
311 if (
strpat(buff_temp,
"**",
'$',
'%') >= 0 )
320 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
324 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
328 if ( (str1 = strtok(str2,
" \t\n\r")) == NULL )
331 memset(buff_temp,0,
sizeof(buff_temp));
332 for ( ii = 0; ii < 8; ii++)
346 printf(
"\n returning from getparm");
355 fprintf( stdout,
"\ngetparm:error - could not find *1 - start of PE codes\n");
362 fprintf(stdout,
"\ngetparm:error - could not find *2 - start of duration codes\n");
368 fprintf(stdout,
"\ngetparm:error - could not find *3 - start of TS codes\n");
374 fprintf(stdout,
"\ngetparm:error - could not find *4 - start of extremun codes\n");
380 fprintf(stdout,
"\ngetparm:error - could not find *5 - start of probability codes\n");
386 fprintf(stdout,
"\ngetparm:error - could not find *6 - start of send codes\n");
392 fprintf(stdout,
"\ngetparm:error - could not find ** - end of file\n");
printf("fbuf is %s\n", fbuf)
fprintf(fp,"%d %d %d %d 1\n", iminx, iminy, maxi, maxj)
strpat(char buffer[], char token[], int numtemp, int chartemp)
char senval[NUM_SENVAL][3]
char proval[NUM_PROVAL][3]
char durval[NUM_DURVAL][3]
char sendcodes[NUM_SENVAL][7]
short int exvalue[NUM_EXVAL]
short int durvalue[NUM_DURVAL]
short int tsvalue[NUM_TSVAL]
short int sendflag[NUM_SENVAL]
double provalue[NUM_PROVAL]
double pevalue[NUM_PEVAL]