11 lines
304 B
Objective-C
11 lines
304 B
Objective-C
#import <Foundation/Foundation.h>
|
|
#include <stdio.h>
|
|
#include <assert.h>
|
|
int remaining(int total, int done) { return done >= total ? 0 : total - done; }
|
|
int main(void) {
|
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
|
printf("%d\n", remaining(4,1));
|
|
[pool drain];
|
|
return 0;
|
|
}
|