Aggiornamento alla versione reale
[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 }