473,839 Members | 1,480 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 8834
In article <1g************ *************** *****@BUSThotma ilE.Rcom>,
<te*********@BU SThotmailE.Rcom > wrote:
Dave Vandervies <dj******@csclu b.uwaterloo.ca> wrote:
If somebody were to tell me face to face that I was an idiot for
preferring that they follow established social norms when dealing with
me,


There is only a single social norm that I care about or believe to be
important.

Is what the person doing causing direct harm to my property (a person
fundamentall y owns themselves), without my consent?

If the answer is no, they, quite simply, can do whatever they feel like
doing.


Then why don't you tell us where you live, and a few CLC regulars who are
following this thread and live in the area can go follow you around for
a day telling you that if you don't like the fact that they're bothering
you you can just ignore them.

I suspect that pondering the above may change your opinion about what
social norms are important.
dave

--
Dave Vandervies dj******@csclub .uwaterloo.ca
I think he should instead be tortured by being forced to sit in a comfortable
armchair whilst someone brings him fiendishly tasty coffee and biscuits. THAT
will teach him to mess with comp.lang.c! HA! --Richard Heathfield in CLC
Nov 13 '05 #91
On Fri, 31 Oct 2003 01:10:34 -0000, in comp.lang.c , "Peter Pichler"
<pi*****@pobox. sk> wrote:
"Mark McIntyre" <ma**********@s pamcop.net> wrote in message
news:v6******* *************** **********@4ax. com...
No, I killfile you when you start telling people wrong C answers.
That would be a bad idea, wrong answers need to be corrected.


Quite, but there's wrong, and there's garbage. ERT is killfiled as
he's just a troll.
Ignorant idiots, OTOH, may be happily plonked :-)


Absolutely. ERT being a case in point.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #92
On Fri, 31 Oct 2003 04:39:45 GMT, in comp.lang.c , "Roose"
<no****@nospam. nospam> wrote:
> "Don't get involved in flame wars. Neither post nor respond toincendiary > material."
I have not posted any incendiary material in this thread.


That's debatable, but what's not debatable is that you consider my posts to
be incendiary, and you have replied to them. Therefore you have violated
your precious RFC.


Don't try to argue with RJH, you'll lose. I've watched it many times.
Then you are in no position to ask me not to top-post, since you don't
follow netiquette yourself.
Non sequitur.
The issue is that you should either respect my preference for top-posting,
or killfile me because you consider me a troll.
We all *respect* it, we have no problem with your preference, just as
I'd not care if your preference was for camels instead of humans, or
smoking instead of whiskey.

But the point is, you show no respect for the CLC rules. When you show
respect for them, you can expect it in turn. You're the newby here, so
you start.
So far though you've distinguished yourself from James Hu and Mark McIntyre,
who aren't really worth responding to.
then why do you?
Mr. Hu is just a fucking dolt who
sounds like a 12-year-old with a thesaurus. And Mr. McIntyre has bored me
with his inability to grasp basic ideas and the sheer volume of posts.
pot, thy name is kettle. But then we did that already...
Prove that I did not post here.


Easy. The only name you're known by is roose. Before the last couple
of weeks, there's never been a post by anyone called roose. Therefore
roose has never posted here before. QED.

Now you prove that you /have/ posted here.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #93
ME TOOO !!!!

On Fri, 31 Oct 2003 12:06:34 -0600, in comp.lang.c , Programmer Dude
<Ch***@Sonnack. com> wrote:
Mark McIntyre wrote:
Then you're behaving like an antisocial cretin who deserves to be
ostracised by your fellows.


ROFLMAO! What's so funny is the manifest inability of you folks
to do just that!

I just *love* these threads where the clcnicks get their knickers
all bunched up.

Oop, darn forgot to post this in HTML....


(if I could have worked out how to post in HTML from a real
newsreader, I'd have done it, with a vcard attached, and all, no
honest I would have).
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #94
"Keith Thompson" <ks*@cts.com> wrote in message
news:lz******** ****@cts.com...
Too many newsgroups have descended into useless chaos. We don't want
to let that happen to comp.lang.c.
An observation: most (all?) technical and/or scientific groups that I am
following tend to self-regulate, in the clc manner. I guess it's mostly
because time wasters usually don't understand the topic of such newsgroup
and quickly give up.
-- .... Schroedinger does Shakespeare: "To be *and* not to be"


Only until the curtain goes up :-)
Nov 13 '05 #95
On Fri, 31 Oct 2003 12:06:34 -0600, in comp.lang.c , Programmer Dude
<Ch***@Sonnack. com> wrote:
Oop, darn forgot to post this in HTML....


<pedantry>
you misspelled oops
</pedantry>

:-)
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 13 '05 #96
Mark McIntyre wrote:
(if I could have worked out how to post in HTML from a real
newsreader, I'd have done it, with a vcard attached, and all, no
honest I would have).


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="content-type"
content="text/html;charset=IS O-8859-1">
</head>
<body>
It&nbsp;isn't&n bsp;difficult&n bsp;to&nbsp;wri te&nbsp;
valid&nbsp;HTML &nbsp;in&nbsp;n ews&nbsp;articl es.<br>
It's&nbsp;just& nbsp;a&nbsp;ver y&nbsp;silly&nb sp;idea.<br>
<br>
</body>
</html>

--
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 #97
"Richard Heathfield" <do******@addre ss.co.uk.invali d> wrote in message
news:bn******** **@sparta.btint ernet.com...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="content-type"
content="text/html;charset=IS O-8859-1">
</head>
<body>
It&nbsp;isn't&n bsp;difficult&n bsp;to&nbsp;wri te&nbsp;
valid&nbsp;HTML &nbsp;in&nbsp;n ews&nbsp;articl es.<br>
It's&nbsp;just& nbsp;a&nbsp;ver y&nbsp;silly&nb sp;idea.<br>
<br>
</body>
</html>


<p>A&nbsp;very& nbsp;silly&nbsp ;idea&nbsp;inde ed!</p>

It displayed as gibberish even in OE. Without headers, you are nothing! :-)

Now, what was your C question?
Nov 13 '05 #98

"Richard Heathfield" <do******@addre ss.co.uk.invali d> wrote in message
news:bn******** **@sparta.btint ernet.com...
Roose wrote:
In Usenet, it is effectively the case that you are what you post. As far as the world can tell, your identity is "Roose" and the only articles you have posted in this newsgroup have all been made within the last few days.
"Mark McIntyre" <ma**********@s pamcop.net> wrote in message
news:an******** *************** *********@4ax.c om... Easy. The only name you're known by is roose. Before the last couple
of weeks, there's never been a post by anyone called roose. Therefore
roose has never posted here before. QED.


From these two posts, I'm going to add to my stereotypical CLC profile:

- inability to distinguish between the real world and the insular little
world of Usenet

Let's repeat. "Roose" is not a real person. I, Andy, am a real person.
Roose has not posted here before, but I have.

It is not possible to prove that I posted here. Just as it's not possible
to prove that I didn't. Therefore, you can't know, but I claim I did. I
know that upsets you greatly, with all your control problems. For something
to be undecidable boggles the small mind.

I don't know if this is funny or sad any more.
Nov 13 '05 #99
> Then why don't you tell us where you live, and a few CLC regulars who are
following this thread and live in the area can go follow you around for
a day telling you that if you don't like the fact that they're bothering
you you can just ignore them.
The difference being that in the real world, there is no mechanism for
ignoring someone if they follow you around in your face. On Usenet, it is
trivial to killfile someone. Granted, that's broken if people quote the
killfiled person, but you "regular" CLCers are in such strict agreement
about things like top-posting, so I'm sure you can agree as well not to
respond to me.

I suspect that pondering the above may change your opinion about what
social norms are important.
dave

--
Dave Vandervies dj******@csclub .uwaterloo.ca I think he should instead be tortured by being forced to sit in a comfortable armchair whilst someone brings him fiendishly tasty coffee and biscuits. THAT will teach him to mess with comp.lang.c! HA! --Richard Heathfield in

CLC
Nov 13 '05 #100

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.