Skip to content

Instantly share code, notes, and snippets.

@abutcher
Created July 2, 2010 22:14
Show Gist options
  • Save abutcher/461983 to your computer and use it in GitHub Desktop.
Save abutcher/461983 to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
#import "dllist.h"
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
dllist *list = [[dllist alloc] init];
[list setData: 5];
[list setNext: [[dllist alloc] init]];
[[list getNext] setData: 3];
NSLog(@"Data: %d Next: %d", [list getData], [[list getNext] getData]);
[pool drain];
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment