practical use of iargc() getarg()

RadSurfer RadSurfer@yahoo.com
Fri Aug 10 03:46:00 GMT 2007


Since getarg() returns strings, I was just wondering precisely how one
converts a string to the proper numerical type desired?

Strangely, the manual (gfortran.pdf) really does not show any practical
example for using getarg() as regards converting to numerical types.

I = IChar('123') ! Integer        (How are the other types handled?)

no matter how often I read through that manual, I see nothing about
obtaining a REAL (single,double, let alone their attributes)
from a String!  Did I miss something?

I was going to try to process some simple formula's with float values
past from the command line, (a cinch for C/C++ naturally)!

Sometimes Fortran just utterly amazes me.

//Rich//




More information about the Fortran mailing list