#include <stdio.h>
int
main (int argc, char *argv[])
{
int i;
printf ("This program was called with \"%s\".\n",argv[0]);
printf ("Arguments passed: ");
for (i = 1; i < argc; ++i)
printf("%s ", argv[i]);
printf ("\n");
if (argc > 1)
{
for (i = 1; i < argc; ++i)
printf("argv[%d] = %s\n", i, argv[i]);
}
else
{
printf("The command had no other arguments.\n");
}
return (0);
}