RosettaCodeData/Task/Reverse-a-string/Objective-C/reverse-a-string-2.m

12 lines
207 B
Objective-C

int main()
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSString *test = [@"!A string to be reverted!" reverseString];
NSLog(@"%@", test);
[pool release];
return 0;
}