--- bill <[EMAIL PROTECTED]> wrote: > Something else I noticed: 'UInt16' and 'int' is there any > differance in these two, I thought there was? > ... > If there isn't a difference, why not just use 'int'??
See my answer below. But first, some caveats: <caveats> I am not an expert in C. I have not recently read the ANSI standards. I did not have any input into or effect upon Palm (now "PalmSource"), Inc's decision to add size indicators to data type names. </caveats> In the original edition of K&R's "The C Programming Language", int is described as "an integer, typically reflecting the natural size of integers on the host machine." Examples are given for machines upon which an int is 16, 32, and 36 bits. In contrast, I think you can expect a UInt16 to be 16 bits, regardless of the machine you use to compile your code. See also http://oasis.palm.com/dev/kb/faq/2409.cfm and, you might find this interesting reading: http://oasis.palm.com/dev/kb/papers/1710.cfm __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
