dsniff/daemon_tmpl.c
void configure_logfile(void)
{
    logfile = fopen("log.txt","w");
	
	if(logfile==NULL) 
	{
		fprintf (stderr,"Unable to create file.");
		exit(1);
	}
    
}
//open file for output writes during operation
open file for output writes during operation
open file for output writes during operation
void configure_logfile(void)
{
    logfile = fopen("log.txt","w");
	if(logfile==NULL) 
	{
		fprintf (stderr,"Unable to create file.");
		exit(1);
	}
}
void configure_logfile ( void ) { logfile = fopen ( " " , " " ) ; if ( logfile == NULL ) { fprintf ( stderr , " " ) ; exit ( 1 ) ; } }
open file for output writes during operation
open file for output writes during operation