libconfig config_read_file error!
Brought to you by:
ejoy
if the config file is like the following, then you will get errors if you call the function -- config_read_file
/****config file a.cfg*************************/
a :
{
ewep = ???;
};
/****config file end*************************/
/***************my primary c code ***********/
config_init(&cfg);
if (!config_read_file(&cfg,"a.cfg"))
{
puts("config_read failed");
exit(1);
}
Logged In: NO
version nubmer:libconfig-1.3