Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!iuvax!silver!mitchemt From: mitchemt@silver.bacs.indiana.edu Newsgroups: comp.lang.c Subject: Args to C progs?? Message-ID: <9600003@silver> Date: 4 Mar 89 22:57:00 GMT Organization: Indiana University CSCI, Bloomington Lines: 19 Nf-ID: #N:silver:9600003:000:494 Nf-From: silver.bacs.indiana.edu!mitchemt Mar 4 17:57:00 1989 I am writing a program in Turbo C and would like to know how to pass arguments to it from the command line after it is compiled to a .exe file. I have tried: main(arg1) char *arg1; { ...... /* do something with arg1 here */ ..... } Unfortunately, the program doesn't seem to recognize arg1. If I pass it a string arg1 is just empty. Any help is appreciated. I just want to pass a string to the program. Thanks in advance, TM