From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,93621d2e1565f597 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-23 06:43:56 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Providing C function With Argv Date: 23 Jul 2002 06:43:55 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0207230543.6765a8f1@posting.google.com> References: NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1027431836 2633 127.0.0.1 (23 Jul 2002 13:43:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 23 Jul 2002 13:43:56 GMT Xref: archiver1.google.com comp.lang.ada:27332 Date: 2002-07-23T13:43:56+00:00 List-Id: jeff.huter@bigfoot.com (Jeff) wrote in message news:... > How does one pass a C function the eqivalent of char **? Is there any > easier way to accomplish this than to construct the char **argv from > Ada.Command_Line.Argument? Working code would be much appreciated > since I'm rather new to Ada. To do this in portable Ada is a real pain, because you would have to reconstruct the data in the form expected by a C program. In practice, most implementations will save argc and argv somewhere. Read the GNAT documentation to find out how this is done in GNAT (it is fully documented). I trust that if you are using GNAT, you do indeed have the documentation?