comp.lang.ada
 help / color / mirror / Atom feed
From: gabrielb@rational.com (Gabriel Bereny)
Subject: Re: HELP: how to get parameters given to an exe ?
Date: 1997/03/27
Date: 1997-03-27T00:00:00+00:00	[thread overview]
Message-ID: <5heugn$rji@rational.rational.com> (raw)
In-Reply-To: Pine.SOL.3.95.970326130156.12841A-100000@java


Ingrid CHESSEL & David EXCOFFIER (linfo14@univ-savoie.fr) wrote:
: I'd want to code in Ada83 to following thing:

: I wan't the user be able to pass parameters after the name of the exe file
: i wrote.

: e.g.:  myprog arg1 arg2 ...

: like in Unix: ls -l    (i want to get this "-l") parmeter
:      or Dos:  dir a:   ( the "a:")

: Is there a possibility to code this kinda thing in Ada 83, under Unix ???

: (I think under Unix or dos, the code in Ada might be the same...)

If you have POSIX bindings available, use the function 
Posix_Process_Environment.Argument_List to get the list of arguments
and then the string list operations in the package Posix to
manipulate the list and extract the arguments which interest you.

Gabriel Bereny
Rational Software Corporation




  parent reply	other threads:[~1997-03-27  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-26  0:00 HELP: how to get parameters given to an exe ? Ingrid CHESSEL & David EXCOFFIER
1997-03-26  0:00 ` Nick Roberts
1997-03-26  0:00 ` Tom Moran
1997-03-27  0:00 ` Gabriel Bereny [this message]
1997-03-27  0:00 ` Bob Klungle
1997-03-28  0:00 ` David C. Hoos, Sr.
1997-03-28  0:00   ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox