#include <stdio.h>
#include <string.h>
typedef struct detce_t
{
char *confidence;
}detce_t;
static detce_t s_detec_proc = {};
int main()
{
char str[64] = {};
FILE *fp = NULL;
fp = fopen("./detec_cfg.ini", "r");
if (NULL == fp)
return -1;
while (NULL != fgets(str, 62, fp))
{
s_detec_proc.confidence = strstr(str, "confidence");
if (NULL != s_detec_proc.confidence)
{
puts(s_detec_proc.confidence);
sscanf(s_detec_proc.confidence, "%*[^=]=%s", str);
puts(str);
}
}
fclose(fp);
return 0;
}