On Fri, 31 Jul 1998, Novak Elliott wrote:
> typedef struct
> {
> double x;
> double y;
> } POINT;
>
> struct
> {
> int ID;
> int numPoints;
> POINT *pasPoints;
> } MYOBJECT;
>
Change structures to:
typedef struct point
{
double x,y;
struct point *next;
} POINT;
typedef struct
{
int ID;
int npts;
POINT *first;
POINT *last;
}MYOBJECT;
and allocate point structures just as you read info for one in and link
them into list. This way you will have to read file just for one time.
Hope this helps.
Karlis