X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/2f11b196bec87977b7af6087fab42e986d24b743..c4b24cdb8c9c9c83ad2b4cad26560b3487d15bd7:/emufs_gui/articulos.c diff --git a/emufs_gui/articulos.c b/emufs_gui/articulos.c index 072bb9a..dd4e29a 100644 --- a/emufs_gui/articulos.c +++ b/emufs_gui/articulos.c @@ -60,7 +60,7 @@ int agregar_nodo_articulo(t_LstArticulos *lst, t_Reg_Articulo *nodo) return 1; } -t_LstArticulos *art_cargar(const char *filename, int tipo) +t_LstArticulos *art_cargar(const char *filename, int tipo, int tam_bloque) { xmlDocPtr document; xmlNode *node, *inicio; @@ -94,7 +94,8 @@ t_LstArticulos *art_cargar(const char *filename, int tipo) node = node->next; } - tmp->fp = emufs_crear("articulos", tipo-1, sizeof(t_Articulo)*4+128, sizeof(t_Articulo)); + fprintf(stderr, "bloque = %d\n", tam_bloque); + tmp->fp = emufs_crear("articulos", tipo-1, tam_bloque, sizeof(t_Articulo)); for (node=inicio ; node ; node = node->next) { if (node->type == XML_ELEMENT_NODE) { if (strcmp(node->name, "ARTICULO") == 0) {