Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFStringRef to hexa



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

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.