From: Marcus Rohrmoser Newsgroups: comp.os.msdos.djgpp Subject: Re: Accessing command line from within DJGPP Date: Fri, 18 Dec 1998 12:11:31 +0100 Organization: Leibniz Rechenzentrum Muenchen Lines: 11 Distribution: world Message-ID: <367A3863.5658564@lrz-muenchen.de> References: <3673ba32 DOT 756202 AT news DOT shineline DOT it> NNTP-Posting-Host: sun3.lrz-muenchen.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4m) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com If it`s not the commandline`s address but just the data you need, maybe the standard method serves you well enough: Define main as `int main(int argc, char** argv)` and you`ll have the number of arguments in `argc` and the values in argv[1] to argv[argc]. argv[argc+1] is NULL by definition. argv[0] is the program`s name. Marcus