Just put the hotsync name in a Char* my_string and step through it. the
value of *my_string will be the value that the pointer points to, which
would be the ascii value of the current char in the string. something like
this would work...
Char* temp = my_string;
for(i=0,i<StrLen(my_string);i++){
assci_value = *my_string;
//do something with the ascii value here//
my_string++;
}
my_string = temp;
--
Scott Erickson
(937) 241-3790
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"Chris Williams" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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/