Newbie: Is it possible for a function to return a String or Character Arrays?
From: Babu (vsbabu_at_gmail.com)
Date: 01/19/05
- Next message: beliavsky_at_aol.com: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Previous message: Gordon Sande: "Re: gfortran: OK, I quit, you win"
- Next in thread: beliavsky_at_aol.com: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Reply: beliavsky_at_aol.com: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Reply: Richard E Maine: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Reply: Babu: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Reply: John Harper: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Reply: Benjamin Johnson: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: beliavsky_at_aol.com: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Previous message: Gordon Sande: "Re: gfortran: OK, I quit, you win"
- Next in thread: beliavsky_at_aol.com: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Reply: beliavsky_at_aol.com: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Reply: Richard E Maine: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Reply: Babu: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Reply: John Harper: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Reply: Benjamin Johnson: "Re: Newbie: Is it possible for a function to return a String or Character Arrays?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|