Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Re: Working wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 6 Topic 1081 of 1133
Post > Topic >>

Re: Working with Cash and uses of Typedef

by Keith Thompson <kst-u@[EMAIL PROTECTED] > Apr 21, 2008 at 01:18 PM

Carl Barron <cbarron413@[EMAIL PROTECTED]
> writes:
> In article <clcm-20080416-0010@[EMAIL PROTECTED]
>, Philluminati
> <Phillip.Ross.Taylor@[EMAIL PROTECTED]
> wrote:
>> And finally, why do I see people typedef values in C and, for example,
>> use size_t rather than an int? 
>   since size_t is not necessarily an int, it could be an unsigned long
> :)  using a typedef  lets the code work no matter what size_t is as
> long as it is an integral type.  including stddefs.h  works whether it
> is an int, or an unsigned long, or even long long....

size_t is guaranteed to be an unsigned type.

-- 
Keith Thompson (The_Other_Keith) <kst-u@[EMAIL PROTECTED]
>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"
-- 
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
 -- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line.  Sorry.
 




 6 Posts in Topic:
Working with Cash and uses of Typedef
Philluminati <Phillip.  2008-04-16 16:57:04 
Re: Working with Cash and uses of Typedef
Carl Barron <cbarron41  2008-04-18 16:11:08 
Re: Working with Cash and uses of Typedef
Keith Thompson <kst-u@  2008-04-21 13:18:44 
Re: Working with Cash and uses of Typedef
=?ISO-8859-1?Q?Hans-Bernh  2008-04-18 16:11:16 
Re: Working with Cash and uses of Typedef
Thomas Richter <thor@[  2008-04-18 16:11:18 
Re: Working with Cash and uses of Typedef
Brian Inglis <Brian.In  2008-04-18 16:12:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 2:32:46 CDT 2008.