int nb_body_conditions, nb_fulfilled_body_conditions;
FILE *db_file;
+ if(!quiet) {
+ printf("Searching in '%s' ... ", db_filename);
+ fflush(stdout);
+ }
+
db_file = fopen(db_filename, "r");
if(!db_file) {
}
fclose(db_file);
+
+ if(!quiet) {
+ printf("done.\n");
+ fflush(stdout);
+ }
}
void recursive_search_in_db(const char *entry_name, regex_t *db_filename_regexp,
while(*s) { if(*s == '/') { filename = s+1; } s++; }
if(regexec(db_filename_regexp, filename, 0, 0, 0) == 0) {
-
- if(!quiet) {
- printf("Searching in '%s' ... ", entry_name);
- fflush(stdout);
- }
-
search_in_db(entry_name, nb_search_conditions, search_conditions, output_file);
-
- if(!quiet) {
- printf("done.\n");
- fflush(stdout);
- }
}
}
}