Re: character string assumed length
- From: "Lynn McGuire" <nospam@xxxxxxxxxx>
- Date: Wed, 28 Feb 2007 10:33:19 -0600
If I call a subroutine with a given character string and I try to put
a larger character string in the string than the field size, what
happens ?
The standard rules for intrinsic assignment of character values apply
- the string is truncated on the right. Since abc is a passed-length
dummy argument, it is character*8 and it operates the same way as if
you had explicitly declared it to be character*8.
Thanks. I had assumed that would be the case but I was not sure.
Lynn
.
- References:
- character string assumed length
- From: Lynn McGuire
- Re: character string assumed length
- From: Steve Lionel
- character string assumed length
- Prev by Date: Re: optional argument versus subroutine overloading
- Next by Date: Re: optional argument versus subroutine overloading
- Previous by thread: Re: character string assumed length
- Next by thread: Re: character string assumed length
- Index(es):
Relevant Pages
|