/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>

int main(int argc, char *argv[], char *envp[])
{
   int i;
   char *p;
   for(i=0;i<argc;i++)
   {
      printf("%s\n",argv[i]);
   }
   i = 0;
   while((p=envp[i])!=NULL)
   {
      printf("%s\n",envp[i]);
      i++;
   }
   return 0;
}
