On Sun, 26 May 1996 20:04:20 -0400,
in <199605270004.UAA13250@access4.digex.net>
Harold Ancell <hga@access.digex.net> wrote ...
> Date: 26 May 1996 14:20 GMT
> From: Mink <Tempest@ktsabers.demon.co.uk>
>
> #include "BGC_drinks.h"
>
> int main(void)
> {
> long drinks=0; // okay so an 'int' *might* *just* do - hehehe
> // for the non C literate;
> // an 'int' has a max. value of 32,767
> // a 'long' has a max. value of 2,147,483,647
>
>Not necessarily so; "int" is defined to be the natural machine word
>length; 16 bits in the 16 bit world, 32 bits in the 32 bit world (I
>don't know about the Alpha). Under Win32 and most if not all Unix
>workstations, int is the same as long.
***BONG***
Newer machines probably, older ones no.
int is defined as 2 bytes hence 32,767 max. in signed form
(unsigned it would 65535 of course)
***BONG***
>
>I prefer using the Microsoft typedefs to make things unambigious:
>
>BYTE, WORD, DWORD for unsigned 8, 16, 32 bits
Don't assume that everything uses the Microsoft C++ or C compiler.
Unix systems generally use their own C compiler (C++ if you're lucky)
and it frequently depends on the age of the system as to what is
typedefs are available.
>I forget about the unsigned ones.
*** see first comment ***
>( Voiceover: "Unfortunately, Mink is a rotten coder." :-)
>
>(No offense intended, but you remember the end of OAV #1, don't you? :-)
None taken ^_^
My tape is getting worn out from being played so often. :) :)
Now before WW or anyone else complains about off-topic-itus
redirect any the follow ups for this to private e-mail.
** Member of the 'vi' users club - even for DOS !!! **
-- Mink/Tempest aka Robin Smith Author: "The Tempest Chronicles"
http://www.geocities.com/Tokyo/2302 Lichfield, Staffordshire, United Kingdom
"I was committed once, but the fools let me out for good behaviour !"
IRC : Mink or Tempest- [ but "Mink" most of the time ^_^ ]