Skip to content

Instantly share code, notes, and snippets.

@boredzo
Created February 28, 2012 19:15
Show Gist options
  • Save boredzo/1934476 to your computer and use it in GitHub Desktop.
Save boredzo/1934476 to your computer and use it in GitHub Desktop.
Boom
#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