开发者

Write straight C code that uses Foundation types?

I want to write some straight C code that uses some Foundation types. For now, I want to use NSInteger, NSUInteger, and NSRange; I can imagine wanting others later. Is there a header somewhere I can import that will get me these types without causing trouble in a straight C fil开发者_运维百科e?


Not Foundation, but you can use Core Foundation (<CoreFoundation/CoreFoundation.h> or more specifically CFBase.h), and the equivalent types CFIndex, CFRange, etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜