
26/04/2005, 06:39
|
| | Fecha de Ingreso: abril-2005
Mensajes: 6
Antigüedad: 19 años, 10 meses Puntos: 0 | |
mmm, ok...
Supongo que es esto.
int *punts_elimin,*pi,*pf,*flag_aresta,*grup_aresta;
***************************RESERVO****************
pi = ivector(1,numero_de_observaciones);
****************************LIBERO****************
ESTA ES LA INSTRUCCION QUE ME DA PROBLEMAS
-----> free_ivector(pi,1,numero_de_observaciones);
int *ivector(nl,nh)
int nl,nh;
{
int *v;
v=( int *)malloc((unsigned) (nh-nl+1)*sizeof( int));
if (!v) nrerror("allocation failure in ivector()");
return v-nl;
}
void free_ivector(v,nl,nh)
int *v,nl,nh;
{
free((char*) (v+nl));
} |