(*size) = (*size)-sizeof(unsigned int)*cant_header*3+3*cant_header*10+1;
memset(tmp1, '.', (*size)-(tmp1-salida));
free(ptr);
(*size) = (*size)-sizeof(unsigned int)*cant_header*3+3*cant_header*10+1;
memset(tmp1, '.', (*size)-(tmp1-salida));
free(ptr);