Re: advantage of using typedefs
- From: Mark McIntyre <markmcintyre@xxxxxxxxxxx>
- Date: Sat, 28 Jan 2006 12:05:30 +0000
On 28 Jan 2006 00:50:55 -0800, in comp.lang.c ,
"junky_fellow@xxxxxxxxxxx" <junky_fellow@xxxxxxxxxxx> wrote:
(concerning typdef'ing)
>Thanx for your reply, Emmanuel. But if this is the case (ie we need
>the biggest possible unsigned integer to hold offset ) then why not declare
>unsigned long long offset;
Because then its size would vary from platform to platform, and on a
c90 implementation it would be an error. Some implementations spell
"long long" as "__int64", others don't support it at all etc etc.
>I believe unsigned long long should be highest possible integer type ?
>Or am I wrong ?
You're right, but the size of long long varies from platform to
platform
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
.
- Follow-Ups:
- Re: advantage of using typedefs
- From: Keith Thompson
- Re: advantage of using typedefs
- References:
- advantage of using typedefs
- From: junky_fellow@xxxxxxxxxxx
- Re: advantage of using typedefs
- From: Emmanuel Delahaye
- Re: advantage of using typedefs
- From: junky_fellow@xxxxxxxxxxx
- advantage of using typedefs
- Prev by Date: Re: Linux c app, called remotely by web.
- Next by Date: Re: Casting return value to fit within constraints of error values (portability)
- Previous by thread: Re: advantage of using typedefs
- Next by thread: Re: advantage of using typedefs
- Index(es):
Relevant Pages
|