Steve Orens <[EMAIL PROTECTED]> wrote in message news:38949@palm-dev-forum...
...
> Well, it looks like that helped. I switched from using %ld to %d and it
> doesn't crash anymore.
>
> I guess I have always assumed that it was safe to print to use %ld (on
other
> platforms, I've been able to inter-change %ld and %d with no
consequences).
> Guess I will need to change my asssumption!

"int" is a tricky thing in C.

"long int" is a guaranteed 4-byte value.
"short int" is a guaranteed 2-byte value.

But "int" (unadorned by modifier) is the value that is most "natural" to the
processor.

--
-Richard M. Hartman

186,000 mi/sec: not just a good idea, it's the LAW!



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

Reply via email to