libs-base/Tests/base/NSTask/Helpers/testecho.m
rfm b179b29898 import testsuite
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32187 72102866-910b-0410-8b05-ffd578937521
2011-02-16 08:21:17 +00:00

20 lines
417 B
Objective-C

#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;
}