dsniff/daemon_tmpl.c
void load_stat()
{
    FILE *infile; 
    
    infile = fopen ("Stat.dat", "r"); 
    if (infile == NULL) 
    { 
        fprintf(stderr, "\nNo saved Stat\n"); 
    } 
    else 
    {
          fread(&statistics, sizeof(struct packet_stat), 1, infile);
          fclose (infile); 
    }
    
}
//load stat from dat.file into structure
load stat from dat.file into structure
load stat from dat . file into structure
void load_stat()
{
    FILE *infile; 
    infile = fopen ("Stat.dat", "r"); 
    if (infile == NULL) 
    { 
        fprintf(stderr, "\nNo saved Stat\n"); 
    } 
    else 
    {
          fread(&statistics, sizeof(struct packet_stat), 1, infile);
          fclose (infile); 
    }
}
void load_stat ( ) { FILE * infile ; infile = fopen ( " " , " " ) ; if ( infile == NULL ) { fprintf ( stderr , " \n \n " ) ; } else { fread ( & statistics , sizeof ( struct packet_stat ) , 1 , infile ) ; fclose ( infile ) ; } }
load stat from dat.file into structure
load stat from dat . file into structure