Re: Proper way to return a string
- From: kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Steven G. Kargl)
- Date: Wed, 27 Dec 2006 19:53:37 +0000 (UTC)
In article <2006122715420316807-gsande@worldnetattnet>,
Gordon Sande <g.sande@xxxxxxxxxxxxxxxx> writes:
On 2006-12-27 15:21:38 -0400, kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
(Steven G. Kargl) said:
For strings, I always use subroutines. I don't remember why I
developed that habit. It is just something I do.
Probably because for a character function you need to declare a
fixed size but it can vary if you use a subroutine.
Assuming that you use Fortran character variables for "strings". ;-)
I know some will consider it blasphemy, but I actually prefer C when
working with characters and/or strings. :-)
To keep the stone thowers at bay, if I had not investigated/learned C
for this purpose, then I would never have developed any of the gfortran
patches that I've submitted. ;-)
--
Steve
http://troutmask.apl.washington.edu/~kargl/
.
- Follow-Ups:
- Re: Proper way to return a string
- From: Terence
- Re: Proper way to return a string
- References:
- Proper way to return a string
- From: Jeremy
- Re: Proper way to return a string
- From: Steven G. Kargl
- Re: Proper way to return a string
- From: Gordon Sande
- Proper way to return a string
- Prev by Date: Re: Proper way to return a string
- Next by Date: Okular-Infos
- Previous by thread: Re: Proper way to return a string
- Next by thread: Re: Proper way to return a string
- Index(es):
Relevant Pages
|