Args.c



/***************************************************************************/
/*                                                                         */
/*                                                                         */
/*       Dump the argv[] and envp[] lists passed to the program.           */
/* Copyright (c) 1989-1992 by Hamilton Laboratories.  All rights reserved. */
/*                                                                         */
/*                                                                         */
/***************************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include "internat.h"

void cdecl main ( int argc, char *argv[], char *envp[] )
      {
      int i;
      Internationalize();
      printf ("argc = %d\n", argc);
      for (i = 0;  i < argc; i++)
         printf ("argv[%d] = '%s'\n", i, argv[i]);
      for (i = 0;  envp[i]; i++)
         printf ("envp[%d] = '%s'\n", i, envp[i]);
      exit(0);
      }



Hamilton C shell | Free Updates | Free Demo Software | Win32 Training
Y2K | Customer Testimonials | On-line Hamilton C shell User Guide
Home | Email | Support | Company Profile | Distributors | Links



Copyright © 1997-2001 by Hamilton Laboratories. All rights reserved.
You are visitor number 679. This page was last modified August 14, 2001.