const char* buf = config->str().c_str();
long bptr = 0;
long len = strlen(buf);
- log(DEBUG,"Data length: %d",len);
ptr = 0;
in_token = 0;
{
/* value not found in tag */
strcpy(result,"");
- log(DEBUG,"ReadConf: value '%s' was not found in tag",var);
return 0;
}
else
{
/* missing quote */
strcpy(result,"");
- log(DEBUG,"ReadConf: possible missing quote!");
return 0;
}
key++;
}
}
strcpy(result,key);
- log(DEBUG,"ReadConf: Got value '%s'",result);
return 1;
}
}
}
if (!strcmp(c_tag,tag))
{
- log(DEBUG,"Tag name correct but index value incorrect");
/* correct tag, but wrong index */
idx++;
}
}
}
}
- log(DEBUG,"ReadConf: neither value '%s' or tag '%s' were found at all!",var,tag);
strcpy(result,""); // value or its tag not found at all
return 0;
}