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.


|