Make sure there are not any spaces or other white space in the beginning of
your string. StrATol has a tendency to return 0.0 if it finds any.
-----Original Message-----
From: Didier Kuttel <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Friday, February 25, 2000 2:52 AM
Subject: Number - String conversion problem
>Hello,
>
>I've already posted a message for a problem with FlpAToF. I'm not
>found a good solution yet. I try to write my own conversion method,
>and I've tried using the StrAToI function :
>
>
>char tmpBuffer [32];
>int anInt;
>
>... fill tmpBuffer [111\0] for example
>
>anInt = StrAToI (tmpBuffer);
>
>
>The result is wrong : anInt = 0. Am I missing something ? StrAToI is
>taking a CharPtr as argument, when I give a char* is that right ?
>
>Have I to allocate my buffer with Palm functions ? Have I to include
>or initialize any stuff to use 'double' or strings ?
>
>
>Thanks for any help.
>
>Didier Kuttel
>
>
>
>
>
>
>--
>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