mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-29 03:21:05 +00:00
21 lines
417 B
Mathematica
21 lines
417 B
Mathematica
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
int
|
||
|
main(int argc, char **argv)
|
||
|
{
|
||
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||
|
NSArray *args = [[NSProcessInfo processInfo] arguments];
|
||
|
unsigned c = [args count];
|
||
|
int i;
|
||
|
|
||
|
for (i = 0; i < c; i++)
|
||
|
{
|
||
|
GSPrintf(stdout, @"%s%@", (i == 0 ? "" : " "), [args objectAtIndex: i]);
|
||
|
}
|
||
|
GSPrintf(stdout, @"\n");
|
||
|
fflush(stdout);
|
||
|
[arp release];
|
||
|
return 0;
|
||
|
}
|
||
|
|