sounds like you have sizeof int == 4.
you probably want it to be == 2.

there are options to control that in the Target Settings panels, and also
you should make sure you are linking to the "...2i" libs instead of the
"...4i" libs.  (or maybe it's "i2" vs "i4", i forget).


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, February 02, 2000 1:44 PM
Subject: StrPrintF is not working for me.


>
>
> Hi everybody, I am having a really strange problem. the following code
does not
> work
>
>  char buf[16];
>  StrPrintF(buf,"telephone%c", 's');
>
> it simply puts telephone in buf. Also in order fro me to print int ( I am
using
> 4 byte option) I have to do this
> char buf[16];
> StrPrintF(buf,"telephone  %ld", 1234);
>  or else garbage is being printed.
>
> I am using CW version 6? any idea
>
> Thanks
>
> Arman Nikzad
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to