At 11:11 AM 7/24/01 -0700, The Armadillo With The Mask wrote:
>[EMAIL PROTECTED] wrote:
>
>>Hello all!
>
>Hi Leonardo!
>
>>Is there any function to convert a Char* that contains a Hexadecimal ASCII to an 
>Int32? There is a function
>>Char* StrIToH (Char* s, UInt32 i)
>>which converts an integer to hexadecimal ASCII. I saw there is no function
>>Int32 StrHToI (const Char* str)
>>but is there another way to do it?
>
>There's nothing directly in the API to do it, but why not use StrPrintF to format the 
>string the way you want?
>Something like:
>    StrPrintF(MyLongIntStr,"%ld",MyHexStr);
>    MyLongInt=StrAToI(MyLongIntStr);
>
>Theres more info about formatting strings with Str{V}PrintF on page 678 of the 3.5 
>API reference.


Umm...  Sorry to bust yer bubble, but "%ld" means that the argument is a long integer,
StrPrintF does NOT do string translation.

Scott Herman
Yale New Haven Hospital
Dept. of Lab Medicine


>HTH,
>'dillo
>
>
>-- 
>For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/


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

Reply via email to