Newbie: Is it possible for a function to return a String or Character Arrays?

From: Babu (vsbabu_at_gmail.com)
Date: 01/19/05


Date: 19 Jan 2005 11:06:35 -0800

Hi,

Pardon my Fortran ignorance; but is it possible to write a function
that returns a String?

Essentially, I want the return value of the function to be a string;

eg:

Character(*) Function MyStringMaker(Something)

so that I can call it like:
print *, 'My function produced '//MyStringMaker(20)

I know how to get this value returned in argument list for the function
like:
Integer Function MyStringMaker(Something, MyOutPutInThis).
I use Intel Fortran 7.1 compiler.

Cheers
Babu



Relevant Pages

  • Re: Newbie: Is it possible for a function to return a String or Character Arrays?
    ... >Pardon my Fortran ignorance; but is it possible to write a function ... How long is a piece of string? ... end Function MyStringMaker ... end program test ...
    (comp.lang.fortran)
  • Re: Desired behaviour of "ifconfig -alias"
    ... Secondly, pardon my ignorance, but what does 'NS' refer to here? ... string / term occurs nowhere else in ifconfig. ...
    (freebsd-stable)
  • Re: Regex extracting certain characters
    ... # I need a regular expression which can select just 2008 and utilise the ... # string that contains just 2008 instead of 20080205. ... pardon if i'm mistaken, but maybe you may want to get the "ending" part of that pathname w/o using regex, ...
    (comp.lang.ruby)
  • Re: Concatenate Text Fields
    ... Pardon me for bumping in, but I was able to get the formula: ... There are no fields named [Num1] in Project only ... The string() function is MS Project does not appear to be the ...
    (microsoft.public.project)
  • Re: my recent documents - size
    ... Pardon my ignorance, but is that a DWORD, a string, or what? ...
    (microsoft.public.windowsxp.basics)