X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/5b88d390025d7b91d0e0d2c6c63fef166b8d20f1..2b317be73e4cfc0751df22597752cd98ce51740c:/emufs_gui/gui.c?ds=inline diff --git a/emufs_gui/gui.c b/emufs_gui/gui.c index 22475cd..88130d5 100644 --- a/emufs_gui/gui.c +++ b/emufs_gui/gui.c @@ -20,11 +20,14 @@ void menu_articulos(); int main(int argc, char *argv[]) { int c, fin=0; - if (argc != 2) { - printf("Modo de uso : %s archivo_de_articulos.xml\n", argv[0]); - return 1; - } +/* art_cargar(argv[1]); + + art_obtener(NULL, "438"); + + art_liberar(NULL); + return 1; +*/ /* Inicio Curses */ signal(SIGINT, finish); initscr(); @@ -53,7 +56,10 @@ int main(int argc, char *argv[]) return 1; } - art_cargar(argv[1]); + if (argc == 2) + art_cargar(argv[1]); + else + art_cargar(NULL); /* Ventana, caracter para linea vertical, caracter para linea horizontal*/ box(stdscr, ACS_VLINE, ACS_HLINE); @@ -84,8 +90,6 @@ int main(int argc, char *argv[]) art_liberar(NULL); - - MD_Listar(); return 0; }