Skip to content

Instantly share code, notes, and snippets.

@whiskey
Last active December 22, 2015 21:49
Show Gist options
  • Select an option

  • Save whiskey/6535877 to your computer and use it in GitHub Desktop.

Select an option

Save whiskey/6535877 to your computer and use it in GitHub Desktop.

Revisions

  1. whiskey renamed this gist Sep 12, 2013. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion Foo.m → main.m
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,10 @@
    //
    // main.m
    // POSIXmyAss
    //
    // Created by Carsten Witzke on 12.09.13.
    //

    #import <Foundation/Foundation.h>

    int main(int argc, const char * argv[])
    @@ -6,12 +13,14 @@ int main(int argc, const char * argv[])
    @autoreleasepool {

    NSString *helloString = @"Hello, World!";
    NSString *hello = @"Hello";
    NSString *world = @"World";
    NSLog(@"Hello, static World!");
    NSLog(@"%@", helloString);
    NSLog(@"--- %2$@ %1$@", hello, world); // --- World Hello

    printf("hello POSIX world");
    printf("%s",helloString.UTF8String);
    }
    return 0;
    }

  2. whiskey renamed this gist Sep 12, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. whiskey revised this gist Sep 12, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion Objective-C POSIX
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@

    #import <Foundation/Foundation.h>

    int main(int argc, const char * argv[])
  4. whiskey created this gist Sep 12, 2013.
    18 changes: 18 additions & 0 deletions Objective-C POSIX
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@

    #import <Foundation/Foundation.h>

    int main(int argc, const char * argv[])
    {

    @autoreleasepool {

    NSString *helloString = @"Hello, World!";
    NSLog(@"Hello, static World!");
    NSLog(@"%@", helloString);

    printf("hello POSIX world");
    printf("%s",helloString.UTF8String);
    }
    return 0;
    }