fork(2) download
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main() {
  4. NSAutoreleasePool *pool = [NSAutoreleasePool new];
  5. NSString *make = @"Porsche";
  6. NSString *model = @"911";
  7. int year = 1968;
  8. NSString *message = [NSString stringWithFormat:
  9. @"That's a %@ %@ from %d!", make, model, year];
  10. NSLog(@"%@", message);
  11. [pool drain];
  12. return 0;
  13. }
  14.  
  15.  
Success #stdin #stdout #stderr 0.03s 42848KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
2016-05-02 11:42:15.759 prog[6095] That's a Porsche 911 from 1968!