(*size) = i[0]+i[1]+i[2]+i[3]+i[4]+i[5];
tmp = (char *)malloc((*size));
if (tmp == NULL) return NULL;
+ memset(tmp, 0, *size);
memcpy(tmp, &src->numero, i[0]);
memcpy(tmp+i[0], src->desc, i[1]);
memcpy(tmp+i[0]+i[1], src->presentacion, i[2]);
* registro se vea bien
*/
tmp = (char *)malloc(sizeof(t_Articulo));
+ memset(tmp, '*', sizeof(t_Articulo));
memcpy(tmp, from, sizeof(t_Articulo));
(*size) = sizeof(t_Articulo);
}