Mapper
read_NEXRAD.c
Go to the documentation of this file.
1
#include "
prototypes.h
"
2
3
void
read_NEXRAD
(
char
*
fname
,
struct
nexrad
*
nexrad
)
4
5
{
6
7
FILE *fr;
8
9
fr=fopen(
fname
,
"rb"
);
10
11
if
(fr==NULL) {
12
13
printf
(
"could not find %s \n"
,
fname
);
14
nexrad
->
flag
=-1;
15
16
return
;
17
18
}
19
20
fread(
nexrad
,
sizeof
(
char
),131*131,fr);
21
nexrad
->
flag
=0;
22
23
fclose
(fr);
24
25
return
;
26
27
}
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
fclose
fclose(fp)
printf
printf("fbuf is %s\n", fbuf)
prototypes.h
read_NEXRAD
void read_NEXRAD(char *fname, struct nexrad *nexrad)
Definition:
read_NEXRAD.c:3
fname
char fname[100]
Definition:
send_afos.c:6
nexrad
Definition:
misc.h:487
nexrad::flag
int flag
Definition:
misc.h:491
Generated by
1.9.1