Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

for_rtl_init_

Runtime Subroutine: Initializes the Fortran runtime environment and causes Fortran procedures and subroutines to behave the same as when called from a Fortran main program. On Linux*, it also establishes handlers and floating-point exception handling.

This routine should be called from a C main program; it is invoked by default from a Fortran main program.

CALL for_rtl_init_ (argcount,actarg)

argcount

Is a command-line parameter describing the argument count.

actarg

Is a command-line parameter describing the actual arguments.

To clean up the Fortran runtime environment, use function for_rtl_finish_.

Example

Consider the following C code:

int argc;
char **argv;
void for_rtl_init_ (int *, char **);
for_rtl_init_ (&argc, argv);

See Also