At 11:34 AM 2/7/2006, you wrote:
Probably because StrAToI is expecting a '\0' terminated string and you're
not providing it.  Try char digit[2];digit[1]='\0'; etc.

Or just say "number = digit - '0'".


-- Ben Combee, Senior Software Engineer, Palm, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


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

Reply via email to