Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nnews!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!hplabs!hpl-opus!hpcc05!hpgva1!hpucph!john From: john@hpucph.hp.com (John Damm Srensen) Newsgroups: comp.sys.hp Subject: Re: argv, argc into Fortran or C subroutine? Message-ID: <16200013@hpucph.hp.com> Date: 6 May 91 07:30:20 GMT References: Organization: Hewlett-Packard A/S , Denmark Lines: 18 Unfortunately there is no suported interface to initialize the Fortran environment from a C program. But still there is away which on a 700/800 is like this: main(argc,argv,envp) int argc; char **argv,**envp; { FTN_SET_AR(argc,argv,envp); FTN_F_INIT(); printf("Arg 1 : %s\n",argv[1]); /* From here on you may call Fortran routines which use Fortran I/O or Fortran intrinsics like getarg igetarg */ } john@hpucph.hp.com Speaking for myself only.