commit 95a7385d3e369db4adeeedad8d47b5f7b76b32c7
parent da7bdb6d393ef83ccfdb8bbf2cd9999b7cab8e5a
Author: klewer-martin <martin.cachari@gmail.com>
Date: Sun, 8 Aug 2021 19:39:48 -0300
Getting ready to deliver 'entrega_3'
Diffstat:
4 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/include/load.h b/include/load.h
@@ -7,7 +7,12 @@
#include "../include/vector.h"
#include "../include/status.h"
-#define STR_MSG_END_PROCSS "End processing input file\nLines processed: "
+#define STR_MSG_END_PROCSS_EN "End processing input file"
+
+#define STR_MSG_END_PROCSS_ES "Se termino el procesamiento del archivo"
+#define STR_MSG_LINES_PROCSSD_ES "Lineas procesadas:"
+#define STR_MSG_USRS_REGISTERD_ES "Usuarios registrados:"
+
status_t load_users_to_vector(ADT_Vector_t **, cla_t);
diff --git a/source/load.c b/source/load.c
@@ -116,7 +116,7 @@ status_t load_users_to_vector(ADT_Vector_t **v, cla_t cla)
} /* End while */
destroy_2darray(data, IN_FILE_FIELDS);
- printf("%s%8ld\nUsers created:%11ld\n", STR_MSG_END_PROCSS, parsed_lines, users_created);
+ printf("%s\n%s%11ld\n%s%8ld\n", STR_MSG_END_PROCSS_ES, STR_MSG_LINES_PROCSSD_ES, parsed_lines, STR_MSG_USRS_REGISTERD_ES, users_created);
return OK;
}
diff --git a/source/main.c b/source/main.c
@@ -85,6 +85,7 @@ int main (int argc, char *argv[])
return st;
}
}
+ show_status(st);
cla_destroy(cla);
ADT_Vector_destroy(&v);
return OK;
diff --git a/source/status.c b/source/status.c
@@ -21,7 +21,7 @@ const char *status_strings[] = {
#else
const char *status_strings[] = {
- "Todo se ejecuto correctamente. Tenga un buen dia.",
+ "Todo se ejecuto correctamente.\nTenga un buen dia.",
"El elemento no pertenece al vector.",
"ERROR: Hubo un problema con la memoria, puede que sea escasa.",
"ERROR: No se reconoce un argumento.",