Mapper
get_forecast_basins.c
Go to the documentation of this file.
1 #include "prototypes.h"
2 
4 
5 {
6 
7 extern struct forecast_basins forecast_basins[500];
8 extern int forecast_basins_flag;
9 char ibuf[100];
10 char *p;
11 FILE *fr;
12 int ier;
13 int ib;
14 
15 if(fname[0]==0 )
16  return;
17 
18 fr=fopen(fname,"r");
19 
20 if(fr==NULL)
21  return;
22 
23 
24 ib=0;
25 for(;;) {
26 
27  p=fgets(ibuf,80,fr);
28 
29  if(p==NULL)
30  break;
31 
32  p=strchr(ibuf,'\n');
33  if(p!=NULL)
34  *p=0;
35 
36  ier=sscanf(ibuf,"%s",forecast_basins[ib].hb5);
37 
38  ib++;
39 
40  }
41 
42 forecast_basins_flag=1;
43 forecast_basins[ib].hb5[0]=0;
44 
45 }
void get_forecast_basins(char *fname)
char fname[100]
Definition: send_afos.c:6
ib
Definition: shleap.cc:46
char hb5[10]
Definition: misc.h:11