success message and not found message added

This commit is contained in:
Chris Cromer 2016-10-21 19:11:15 -03:00
parent 5200a2a46a
commit 2e24ab9d50
2 changed files with 7 additions and 0 deletions

View File

@ -116,6 +116,8 @@ int main(int argc, char **argv) {
makexml(); makexml();
printf("El achivo %s ha sido generado.\n", config->file);
free(config->file); free(config->file);
free(config->bible); free(config->bible);
free(config->book); free(config->book);

View File

@ -241,5 +241,10 @@ int readfile() {
} }
free(array); free(array);
if (matches[0] == false || matches[1] == false || matches[2] == false) {
printf("No pudo encontrar lo solicitado en Biblia.txt!\n");
return 1;
}
return 0; return 0;
} }