mgxapp/lib/tools.c
/*
	Allow caller to redirect human readable output
*/
Allow caller to redirect human readable output
Allow caller to redirect human readable output
extern void mt_log_target( const char* file_name ) {
	if( mt_log_dest != stderr ) {
		fclose( mt_log_dest );
	}
	if( strcmp( file_name, "stderr" ) == 0 ) {
		mt_log_dest = stderr;
	} else {
		mt_log_dest = fopen( file_name, "a" );
	}
}
extern void mt_log_target ( const char * file_name ) { if ( mt_log_dest != stderr ) { fclose ( mt_log_dest ) ; } if ( strcmp ( file_name , " " ) == 0 ) { mt_log_dest = stderr ; } else { mt_log_dest = fopen ( file_name , " " ) ; } }
Allow caller to redirect human readable output
Allow caller to redirect human readable output