Friday, January 21 05:22:49

Hi,

My question, below I have declared a struct which is used in a binary
tree, but I have to keep track of the root node from another node which is
used in an array of ptr's -> structs. Can I do that or is that illegal ?

 the tree node....
struct tnode {
 char *destination;
 float mcount;
 float msize;
 float mav_size;
 time_t utc_time;

 struct tnode *left;
 struct tnode *right;
};

 and the node for the array which should hold the pointer to the 
 binary tree...
struct lognode {
 char *logfile;
 float tot_bytes;
 float tot_messages;
 struct tnode *root;  /* <==== ?? */
};

Thnkx..

J.

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" 
in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to