473,785 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Asking if elements in struct arre zero

If I have:

struct one_{
unsigned int one_1;
unsigned short one_2;
unsigned short one_3;
};

struct two_{
unsigned int two_1;
unsigned short two_2;
unsigned char two_3;
};

struct mystruct{
struct one_ one;
struct two_ two;
}mystruct1;

Then could I by any change ask on the value of the whole struct mystruct1,
that is all the elements in the struct in one call? I want to do something
like (in pseudo like language):

if(mystruct1 == 0) { print("All elements of mystruct1 is zero");}
Best Regards
Terry
Nov 13 '05
258 8751
Roose wrote:
See the other post


Which other post? Please quote sufficient context above your reply so that
we can know what on earth you're talking about.

Thanks.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 13 '05 #31
Roose wrote:
See the other post -- just use a newsreader where you can group by thread.
All of my messages have been replies in this same thread, so it is easy to
track the conversation. I just didn't feel like replying to each
obsessive-compulsive idiot individually, but rather I dispatched them as a
group. Even web interfaces like google show who replied to who in a tree.


I don't know why my killfile didn't filter your messages, hopefully it
will now.

The problem with your theory is that this requires that I hunt down the
message that contains the text you are replying to in order for your
post to make any kind of sense. If you want your post to make sense it
should contain enough of the origional for your comment to make sense.
I am not going to back up and read the one before just because you
refuse to be courtious.

--
Noah Roberts
- "If you are not outraged, you are not paying attention."

Nov 13 '05 #32
Which theory? Sort by thread. It doesn't take a genius. Even if I quote
nothing, then you just go to the previous in the thread. There is no
hunting.

The problem with your theory is that this requires that I hunt down the
message that contains the text you are replying to in order for your
post to make any kind of sense. If you want your post to make sense it
should contain enough of the origional for your comment to make sense.
I am not going to back up and read the one before just because you
refuse to be courtious.

--
Noah Roberts
- "If you are not outraged, you are not paying attention."

Nov 13 '05 #33
So, have you killfiled me yet or not? Do you plan to?

This is a test.

If not, you're a blithering idiot. I have noticed that in almost thread you
post in, you whine about something being off-topic, about not being C, about
somebody's coding style, about their punctuation and grammar. If you don't
like it, just don't read it. That's exactly what I do, and I admit there is
a lot of abhorrent writing here. Don't fill the newsgroup with garbage.

Have you noticed that UseNet is public and that comp.lang.c is unmoderated?
That means that, sadly, you cannot control it, like so many things in your
life. It is an interesting exercise to consider the psychological
motivation of why you continue to try. I would urge you to consider
starting your own forum about the C language, where you have absolute
control.

Note: that last part was a TROLL, part of the test. This ends the test.

If for some "mysterious reason" your killfile does not work, then please
ignore this and try again. While you're at it, get a newsreader which lets
you sort by thread. It will relieve much of the irritation you get from
top-posting and under-quoted posts.

"Richard Heathfield" <do******@addre ss.co.uk.invali d> wrote in message
news:bn******** **@titan.btinte rnet.com...
Roose wrote:
See the other post


Which other post? Please quote sufficient context above your reply so that
we can know what on earth you're talking about.

Thanks.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton

Nov 13 '05 #34
Roose wrote:
So, have you killfiled me yet or not? Do you plan to?
It's impossible to determine, from the (absence of) text above this
sentence, what it actually refers to. We told you about this, remember?

This is a test.


You failed it.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 13 '05 #35
No, on the other hand, this implies that:

1) you failed the test, because you saw the message and hence could not have
killfiled me. Although I do commend you for not responding directly to the
troll, it being so witheringly accurate. Bravo!!!

2) rather than obtaining a decent newsreader, you would rather harass the
group with these idiotic messages, claiming you can't make sense of
something that requires no context without lines of quoting. None of my
last few posts requires any quoting, unless you're an idiot.

I'll be happy to continue this exchange as long as you see fit, seeing that
I enjoy watching you writhe and post inane comments in order to get the last
word -- typical of those with control problems such as yourself.

However, please note that you're an utter hypocrite for complaining about
top-posting while feeding who you consider to be trolls. Which of course is
considered even worse netiquette by the Gods of UseNet. I, on the other
hand, recognize that UseNet is a public forum, so people may do as they
wish, including the feeding of trolls like yourself. I know this is bad
behavior, but it is so much fun. I think if I were a bystander it would be
pretty hilarious to see someone get their panties in a knot over
top-posting. Not much else in life for you, is there? Get some
perspective, seriously.
"Richard Heathfield" <do******@addre ss.co.uk.invali d> wrote in message
news:bn******** **@sparta.btint ernet.com...
Roose wrote:
So, have you killfiled me yet or not? Do you plan to?


It's impossible to determine, from the (absence of) text above this
sentence, what it actually refers to. We told you about this, remember?

This is a test.


You failed it.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton

Nov 13 '05 #36
On 2003-10-29, Roose <no****@nospam. nospam> wrote:
[ ... drivel ... ]
Get some perspective, seriously.


Your handle obviously refers to a "ruse", but I don't think that word
means what you think it means. You display about as much guile and
subtlety as a pile of horse manure. You seem to be suffering from
delusions of adequacy, the likes of which has been seen over and over
again, ad nauseum.

In case you don't get the message, allow me to explain in small
words, so you will understand, you wart-hog-faced buffoon. Observing
netiquette is how netizens show each other courtesy and respect,
obviously not high on your list or priorities, worm. Since you ridicule
polite requests to observe netiquette, then you show yourself to be a
mere snivelling whiny tyro wannabe.

Go away, pig, or shut up, you miserable vomitous mass, until you learn
how to get along and meaningfully participate in this newsgroup.

-- James
--
My apologies to William Goldman
Nov 13 '05 #37
One paranoid "Roose" <no****@nospam. nospam> wrote:
<snip>
even more offending crap not suitable for quoting.

Why don't you just killfile all other posters in this group? That'd be
much easier than to make them killfile you. Maybe it's a good idea to
even killfile yourself. Think about it.

--
Irrwahn
(ir*******@free net.de)
Nov 13 '05 #38
Irrwahn Grausewitz wrote:
Maybe it's a good idea to
even killfile yourself. Think about it.

Useneticide? Is that legal?

--
Noah Roberts
- "If you are not outraged, you are not paying attention."

Nov 13 '05 #39
Noah Roberts <nr******@donte mailme.com> wrote:
Irrwahn Grausewitz wrote:
Maybe it's a good idea to
even killfile yourself. Think about it.

Useneticide? Is that legal?


I'd call it Suiseneticide, but: Why not?
--
Irrwahn
(ir*******@free net.de)
Nov 13 '05 #40

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.