Created
February 28, 2012 19:15
-
-
Save boredzo/1934476 to your computer and use it in GitHub Desktop.
Boom
This file contains 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
#import <Foundation/Foundation.h> | |
static NSString *getString(void); | |
int main(int argc, char **argv) { | |
@autoreleasepool { | |
NSLog(@"%@", getString()); | |
} | |
return EXIT_SUCCESS; | |
} | |
static NSString *getString(void) { | |
NSString *foo; | |
@autoreleasepool { | |
foo = [NSString stringWithUTF8String:"Hello world"]; | |
} | |
return foo; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment