main.c
/*
 * Sets default config state if somthing goes wrong
 * while reading setting from config file
 */
Sets default config state if somthing goes wrong
while reading setting from config file
Sets default config state if somthing goes wrong while reading setting from config file
void init_miner_config(MinerConfig *config)
{
	config->bombs = 10;
	config->width = 8;
	config->height = 8;
	config->small_time.tv_sec = 999;
	config->small_time.tv_usec = 0;
	config->medium_time.tv_sec = 999;
	config->medium_time.tv_usec = 0;
	config->large_time.tv_sec = 999;
	config->large_time.tv_usec = 0;
}
void init_miner_config ( MinerConfig * config ) { config -> bombs = 10 ; config -> width = 8 ; config -> height = 8 ; config -> small_time . tv_sec = 999 ; config -> small_time . tv_usec = 0 ; config -> medium_time . tv_sec = 999 ; config -> medium_time . tv_usec = 0 ; config -> large_time . tv_sec = 999 ; config -> large_time . tv_usec = 0 ; }
Sets default config state if somthing goes wrong
 while reading setting from config file
Sets default config state if somthing goes wrong while reading setting from config file