Last active
December 15, 2015 08:38
-
-
Save 7gano/5231806 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <CoreFoundation/CoreFoundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
CFStringRef stringRef; | |
stringRef = CFSTR("Hello, World!\n"); | |
CFStringRef fruits[] = {CFSTR("Apple"), CFSTR("banana")}; | |
CFArrayRef arrayRef; | |
arrayRef = CFArrayCreate(kCFAllocatorDefault, | |
(const void **)fruits, | |
2, | |
NULL); | |
CFShow(stringRef); | |
CFShow(arrayRef); | |
CFRelease(arrayRef); | |
return 0; | |
} | |
実行結果 | |
Hello, World! | |
<CFArray 0x100107050 [0x7fff7e3cb110]>{type = immutable, count = 2, values = ( | |
0 : <0x100001060> | |
1 : <0x100001080> | |
)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment