projects
/
gapil.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
60b0025f90db461e5ee273727e46369cd828f5dd
[gapil.git]
/
WriteStruct.c
1
struct histogram {
2
int nbins;
3
double max, min;
4
double *bin;
5
} histo;
6
7
int WriteStruct(FILE *stream, struct histogram *histo)
8
{
9
if ( fwrite(histo, sizeof(*histo), 1, stream) !=1) {
10
perror("Write error");
11
}
12
return nread;
13
}