* structure containing node pointing to an other type structure
@ 2005-01-21 4:31 J.
0 siblings, 0 replies; only message in thread
From: J. @ 2005-01-21 4:31 UTC (permalink / raw)
To: linux-c-programming
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-21 4:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-21 4:31 structure containing node pointing to an other type structure J.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).