Re: advantage of using typedefs



On Sat, 28 Jan 2006 19:32:56 GMT, in comp.lang.c , Keith Thompson
<kst-u@xxxxxxx> wrote:

>Mark McIntyre <markmcintyre@xxxxxxxxxxx> writes:
>> On 28 Jan 2006 00:50:55 -0800, in comp.lang.c ,
>> "junky_fellow@xxxxxxxxxxx" <junky_fellow@xxxxxxxxxxx> wrote:
>>
>>>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
>
>Yes, but if you want the biggest unsigned integer type, you have to
>accept that its size is going to vary.

.... which was my point.

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 =----
.



Relevant Pages

  • Re: Moving from C++ to VC++
    ... > have been bad to constrain fseek to 16 bit int offsets, so they used long, ... > for a standard type like long, ... general-purpose integer type on the platform. ...
    (microsoft.public.vc.language)
  • Re: Delay Routine: Fully-portable C89 if possible
    ... integer type that has exactly 32 value representational bits. ... A platform that has no such type can't run that code as designed, so there's no point for it to compile on that platform. ... 32-bit integers - it's not clear whether you are trying to say that the cpu in question must be at least 32 bits (which is of course not the case - your code would work perfectly well on an 8-bit cpu, which regularly have 16-bit hardware registers and perhaps also 32-bit hardware registers) or just that it can work with 32-bit data. ...
    (comp.arch.embedded)
  • Re: Upgrading to VB.Net
    ... I mean, it has not been documented anywhere that "Integer is the platform specific integer type", but it was the type commonly used for integer operations and it "happened to" match the native integer size. ... That's my point, it once was picked to be the same size as the current machine word, but it has never been depending on the actual size of the ... Besides, if it's not confusing with a 16 bit Integer on a 32 bit platform, how can it be confusing with a 32 bit Integer on a 64 bit platform? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Delay Routine: Fully-portable C89 if possible
    ... integer type that has exactly 32 value representational bits. ... A platform that has no such type can't run that code as designed, so there's no point for it to compile on that platform. ... One of them is that it's quite hard to implement its functionality unless you're the compiler implementor. ...
    (comp.arch.embedded)
  • Re: A question about fill_free_list(void) function
    ... The wonderful part is that all those nasty tricks are only there, ... from us poor mortals, so we can focus on writing nice and elegant Python ...
    (comp.lang.python)