[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[no subject]



try something like
struct coord_struct
{
  double x;
  double y;
}

struct TAB_struct
{
  struct coord_struct c[];
  int points;
}

If your coordinates are allocated dynamicly get the pointer local in
your function:
{
  struct coord_struct* = tab->c;
}

so no double pointer dereferencing is needed (don't know how good gcc or
egcs is with tricks like that).

Bye, Hans

----------------------------------------------------------------------
   /|   /\/\/\   |\      ir. Hans Wessels
  / |  / /\/\ \  | \     H.Wessels@Energie-Delfland.nl
 /  | / / /\ \ \ |  \    tel.: 015 251 4397
/   |/ / /  \ \ \|   \   
\   |\ \ \  / / /|   /   prive:
 \  | \ \ \/ / / |  /    mr_ni@mbh.org
  \ |  \ \/\/ /  | /     Fidelus Bittus et Fuckus Clockcyclus!
   \|   \/\/\/   |/      



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []