Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Standard conforming way to get command line arguments in FORTRAN77

The gcc manual mentions getarg as a gnu extension. It seems to be supported by many compilers (i.e. the rather strict f2c also understands it). But getarg is not mentioned in the FORTRAN77 standard. So is/was there any standard conforming way to get command line arguments in FORTRAN77?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

No there is no way. This kind of interaction with the operating system is not covered in the ancient FORTRAN 77 standard and must be done using non-standard extensions or using standard features from Fortran 2003 as in How to use command line arguments in Fortran?.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading