#import <Foundation/Foundation.h>

int
main (int argc, char **argv, char **env)
{
  CREATE_AUTORELEASE_POOL (pool);

  NSProcessInfo	*procinfo;
  NSArray *args;
  NSString *foo = @"Test";

  procinfo = [NSProcessInfo processInfo];

  if (!procinfo)
    {
      NSLog (@"Unable to obtain process info.\n");
      RELEASE (pool);
      exit (EXIT_FAILURE);
    }

  args = [procinfo arguments];
  
  if ([args count] == 1)
    GSPrintf (stdout, @"No arguments given\n");
  printf ("%s, PID %d\n", [foo cString], [procinfo processIdentifier]);
  RELEASE (pool);
  exit (EXIT_SUCCESS);
}
