Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcnc!gatech!cuae2!ihnp4!ihlpg!cuda From: cuda@ihlpg.UUCP (Nelson) Newsgroups: comp.sys.cbm Subject: C Power problems with argc and argv Message-ID: <2755@ihlpg.UUCP> Date: Wed, 21-Jan-87 22:20:37 EST Article-I.D.: ihlpg.2755 Posted: Wed Jan 21 22:20:37 1987 Date-Received: Thu, 22-Jan-87 19:53:58 EST Organization: AT&T Bell Labs, Naperville, IL Lines: 25 I wrote this short program to experiment with argv and argc. The output is always the same. Argc is zero and argv is empty (probably because of argc). Has anyone gotten these things to work? Does anyone know what the command syntax should be? I have tried both in and out of the shell. include "stdio.h" main(argc, argv) int argc; char *argv[]; { int i; printf("argc = %d\n",argc); printf("argv = "); for (i=0;i