From: stt@henning.camb.inmet.com (Tucker Taft)
Subject: Re: C programmer with Newbie question
Date: Wed, 25 Jan 1995 23:45:49 GMT
Date: 1995-01-25T23:45:49+00:00 [thread overview]
Message-ID: <D2zJCE.I0x@inmet.camb.inmet.com> (raw)
In-Reply-To: 3fj6bh$9a8@cronkite.seas.gwu.edu
In article <3fj6bh$9a8@cronkite.seas.gwu.edu>,
David O'Brien <dobrien@seas.gwu.edu> wrote:
>David Weller (dweller@Starbase.NeoSoft.COM) wrote:
>: In article <3fgsin$kc6@info4.rus.uni-stuttgart.de>,
>: Peter Hermann <ucaa2385@iris1.csv.ica.uni-stuttgart.de> wrote:
>: >Michael Bartz (m-bartz@memphis.edu) wrote:
>: >: Can you pass command line arguments to an Ada program?
>: >
>: >A.15 The Package Command_Line
>: >
>: > function Argument_Count return Natural;
>
>: equiv to argc
Actually, Argument_Count is equivalent to argc-1. That is, it is
a count of "arguments" and does *not* include the command name itself.
>: > function Argument (Number : in Positive) return String;
>
>: equiv to argv[1]..argv[argc]
Actually, Argument(N) for N in 1..Argument_Count is
equivalent to argv[n] for (n = 1; n < argc; n++)
>: > function Command_Name return String;
>:
>: equiv to argv[0]
Right.
> ...
>-- David O'Brien (dobrien@seas.gwu.edu)
-Tucker Taft stt@inmet.com
Intermetrics, Inc.
Cambridge, MA 02138
next prev parent reply other threads:[~1995-01-25 23:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m-bartz-1701950936420001@macgalois.ee.memst.edu>
1995-01-17 17:10 ` Command Line Parameters fewellsj
1995-01-24 2:42 ` David Weller
1995-01-24 16:09 ` Tarjei Jensen
1995-01-26 12:54 ` Mats Weber
[not found] ` <3fgsin$kc6@info4.rus.uni-stuttgart.de>
[not found] ` <3fhub3$4gv@Starbase.NeoSoft.COM>
1995-01-18 13:50 ` C programmer with Newbie question David O'Brien
[not found] ` <D2MB10.33w@world.std.com>
1995-01-19 9:32 ` Peter Hermann
1995-01-20 16:55 ` Robert Dewar
1995-01-25 23:45 ` Tucker Taft [this message]
1995-01-23 15:45 ` David Emery
1995-01-25 23:40 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox