|
|
@ -69,12 +69,10 @@ int main(int argc, char *argv[]) { |
|
|
|
|
|
|
|
|
|
|
|
while (fgets(line, sizeof(line), file) != NULL) { |
|
|
|
while (fgets(line, sizeof(line), file) != NULL) { |
|
|
|
read++; |
|
|
|
read++; |
|
|
|
|
|
|
|
fputs(line, stdout); |
|
|
|
if ((ftag = f2b_filter_match(filter, line, match, sizeof(match), &score)) > 0) { |
|
|
|
if ((ftag = f2b_filter_match(filter, line, match, sizeof(match), &score)) > 0) { |
|
|
|
matched++; |
|
|
|
matched++; |
|
|
|
fprintf(stdout, "+ %s (score: %d, tag: %08X)\n", match, score, ftag); |
|
|
|
fprintf(stdout, "# match -- addr: %s, score: %d, tag: %08X\n", match, score, ftag); |
|
|
|
continue; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
fprintf(stdout, "- (no-match): %s", line); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
fclose(file); |
|
|
|
fclose(file); |
|
|
|