I would do it but is impossible. The programs are too much long.
Originally Posted by laserlight
I can do an example for my question:
I create a structure like this for a list of clusters:
I use this in a while loop:
int index;//indice del cluster
int totElements;//number of elements in the cluster
elementType *elements;//pointer to the elements of the cluster
clusterType *nextCluster;//point to next Cluster
int centroid;//the centroid
at a certain point seems that structures can't be allocate anymore.
//....procedures to create elements in the list
The question is: What happen when I use the free function?