projects
/
gapil.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Correzioni alle pagine web, e aggiunta di qualche TODO in occasione
[gapil.git]
/
listati
/
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
}