_gfortran_set_args
saves the command-line arguments; this initialization is required if any of the command-line intrinsics is called. Additionally, it shall be called if backtracing is enabled (see _gfortran_set_options
).
void _gfortran_set_args (int argc, char *argv[])
argc | number of command line argument strings |
argv | the command-line argument strings; argv[0] is the pathname of the executable itself. |
int main (int argc, char *argv[]) { /* Initialize libgfortran. */ _gfortran_set_args (argc, argv); return 0; }
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gfortran/_005fgfortran_005fset_005fargs.html