From: "J." <mailing-lists@xs4all.nl>
To: linux-c-programming@vger.kernel.org
Subject: structure containing node pointing to an other type structure
Date: Fri, 21 Jan 2005 05:31:19 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.21.0501210522490.17563-100000@hestia> (raw)
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.
reply other threads:[~2005-01-21 4:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.21.0501210522490.17563-100000@hestia \
--to=mailing-lists@xs4all.nl \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).