You can also use wcstol() or wcstoll(). I don't know if there's a
way to go directly from CFString.
These convert directly from unicode chars to an integer, and they
recognizes hex, with or without a leading 0x.
Check the man pages rather than the online docs. (See also
swscanf("%lx")).
---------------
Byron wrote:
First convert the CFStringRef to a UTF8-encoded C-string.
Then use strtoq (man strtoq)
On Jun 30, 2006, at 1:56 AM, Alex Ivanov wrote:
Is there a way to convert a CFStringRef which
represents a number in hexadecimal to an actual number?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden