repo.or.cz
/
WPS-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add new fields XLAT_C and XLONG_C
[WPS-merge.git]
/
geogrid
/
util
/
plot_source
/
a.c
blob
92472d15c91385a0f8c1f2a0feb2d206ffe98a75
1
#include <stdio.h>
2
3
#define N1 1200
4
5
int
main
(
int
argc
,
char
**
argv
)
6
{
7
FILE
*
a
;
8
unsigned char
*
data
;
9
int
i
,
j
;
10
int
data1
[
N1
*
N1
];
11
12
data
= (
unsigned char
*)
malloc
(
N1
*
N1
);
13
a
=
fopen
(
argv
[
1
],
"r"
);
14
fread
(
data
,
1
,
N1
*
N1
,
a
);
15
fclose
(
a
);
16
17
for
(
i
=
0
;
i
<
N1
*
N1
;
i
++)
18
{
19
printf
(
"%i
\n
"
, (
int
)(
data
[
i
]));
20
}
21
22
free
(
data
);
23
24
return
0
;
25
}