At 06:00 PM 6/13/2005, you wrote:
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.

Just say

int my_ascii_value = 'A'.

Single characters already have an integer type in the C language.


-- Ben Combee, Senior Software Engineer, palmOne, 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