fork(1) download
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main() {
  4. NSAutoreleasePool *pool = [NSAutoreleasePool new];
  5. NSString *make = @"Porsche";
  6. int i;
  7. for (i=0; i<[make length]; i++) {
  8. char letter = [make characterAtIndex:i];
  9. NSLog(@"%d: %c", i, letter);
  10. }
  11. [pool drain];
  12. return 0;
  13. }
  14.  
  15.  
Success #stdin #stdout #stderr 0.02s 42824KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
2016-05-01 20:15:46.848 prog[23523] 0: P
2016-05-01 20:15:46.884 prog[23523] 1: o
2016-05-01 20:15:46.884 prog[23523] 2: r
2016-05-01 20:15:46.884 prog[23523] 3: s
2016-05-01 20:15:46.884 prog[23523] 4: c
2016-05-01 20:15:46.884 prog[23523] 5: h
2016-05-01 20:15:46.884 prog[23523] 6: e