dsniff/daemon_tmpl.c
void save_stat()
{
    FILE *StoreStat;
    StoreStat = fopen("Stat.dat","w");
	
	    if(logfile==NULL) 
	    {
		    fprintf (stderr,"Unable to create file.");
		    exit(1);
	    }
        fwrite(&statistics, sizeof(struct packet_stat), 1, StoreStat);
        
        fflush(StoreStat);
    
}
//store structure content into dat.file
store structure content into dat.file
store structure content into dat . file
void save_stat()
{
    FILE *StoreStat;
    StoreStat = fopen("Stat.dat","w");
	    if(logfile==NULL) 
	    {
		    fprintf (stderr,"Unable to create file.");
		    exit(1);
	    }
        fwrite(&statistics, sizeof(struct packet_stat), 1, StoreStat);
        fflush(StoreStat);
}
void save_stat ( ) { FILE * StoreStat ; StoreStat = fopen ( " " , " " ) ; if ( logfile == NULL ) { fprintf ( stderr , " " ) ; exit ( 1 ) ; } fwrite ( & statistics , sizeof ( struct packet_stat ) , 1 , StoreStat ) ; fflush ( StoreStat ) ; }
store structure content into dat.file
store structure content into dat . file