wow! sorry i miss that out.. ya your absolutely right... i thought i can pass a string to StrAToI()...
Tanx man!


Best Regards,
Brian
James wrote:

Brian wrote:


Has anyone encountered this kind of problem : when calling StrAToI() function it always returns zero.

example:

const Char* str = "hello world"; Int32 output = StrAToI( str );



And what do you expect it to return?


StrAToI behaves like atoi from the C standard library; it reads base-10 digits
from the start of the input string until it encounters a character that is not
a base-10 digit.  In this case, you give a string with no leading digits, and
hence it returns 0.

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.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