using iargc()/getarg() form C
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Feb 23 01:59:00 GMT 2005
On Tue, Feb 22, 2005 at 05:23:01PM -0600, Satish Balay wrote:
> On Tue, 22 Feb 2005, Steve Kargl wrote:
>
> > Both intrinsics are from Fortran 2003 and so are technically
> > extension to the Fortran 95 language.
> >
> > I would certainly use these instead of iargc/getarg.
>
> Could you tell me what are the correct symbols in the fortran
> library that I can call directly from C?
I just looked at the implementation of iargc. You can't
get at the command line arguments with the gfortran
functions from a C program. Well, you might be able to
get them, but we need more details in exactly what
you're doing.
Most C programs have
int main(int argc, char *argv[])
as the entry point. Is there some reason you can't just
use the usual C idiom.
--
Steve
More information about the Fortran
mailing list