From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: nabbasi@pacbell.net
Date: 1999/02/28
Date: 1999-02-28T00:00:00+00:00 [thread overview]
Message-ID: <m3u2w61ajf.fsf@mheaney.ni.net> (raw)
In-Reply-To: 7bbd3c$gf7@drn.newsguy.com
how to read C extern variables from Ada? <how@newsguy.com> writes:
> --------------------
> SYNOPSIS
> #include <unistd.h>
>
> int getopt(int argc, char * const argv[], const char *optstring);
> extern char *optarg;
> extern int optind, opterr, optopt;
> -----------------------
>
> So, in the above, after I call getopt(), I need a way to 'read' optarg. There
> is no C API to read optarg. So, How to do this in Ada??
Use pragma Import. (I think.)
next prev parent reply other threads:[~1999-02-28 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-28 0:00 nabbasi@pacbell.net how to read C extern variables from Ada?
1999-02-28 0:00 ` Matthew Heaney [this message]
1999-02-28 0:00 ` how to read C extern variables from Ada? David C. Hoos, Sr.
1999-03-02 0:00 ` nabbasi@pacbell.net Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox