Correct me if I am wrong, but wouldn't this give the same result:
int my_ascii_value = 'A';
printf("Result: %d", my_ascii_value);
I was under the impression that 'A' and 65 were the same value, just
expressed in a different way. What is the purpose of asc()?

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:bounce-441832-
> [EMAIL PROTECTED] On Behalf Of Chris Williams
> Sent: Monday, June 13, 2005 7:00 PM
> To: Palm Developer Forum
> Subject: PalmOS asc() equivalent?
> 
> Hi, all...I'm having problems finding an asc() equivalent in the API.
> What I need is the ASCII value of an given character. So:
> 
> int my_ascii_value = asc('A');
> printf("Result: %d", my_ascii_value);
> 
> Result: 65
> 
> Is there a way to do that with the PalmOS API? I don't see a function
or
> API to do that. Any help would be appreciated.
> --
> For information on using the PalmSource Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/support/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