At 03:33 PM 6/18/2003, Brian Preston wrote:
The hard-coded 3 was there because I thought I needed
a maximum of 3 chars for each row(including the null
terminator), not because of the size of Char. I'm not
sure I needed the space at the front of the
single-char numbers, but I thought it would be easier
if they were all the same width. I was envisioning the
rows of the array to be something like this (this is
the whole array, with each row delimited by the
commas):

' 1\0', ' 2\0'...'10\0'

Since we're talking about size of Char, what's the
difference between Char and char?

No difference. The Palm OS system headers say "typedef char Char;". It's used to avoid changing the type if your compiler treats "char" as an unsigned type rather than a signed one.


If you want to line-up the numbers, you should use the numeric space which has the same width as the numbers, rather than the standard space character. See Chars.h for a macro that will provide the correct character code on all OS versions.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to