Re: variable length strings
From: robin (robin_v_at_bigpond.com)
Date: 08/19/04
- Next message: Gary L. Scott: "Re: Fortran Forum - Oh Boy"
- Previous message: Gary L. Scott: "Re: Binary operations in FORTRAN"
- In reply to: Mr. Adam Burry: "variable length strings"
- Next in thread: Richard Maine: "Re: variable length strings"
- Reply: Richard Maine: "Re: variable length strings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 19 Aug 2004 00:28:26 GMT
Do you have an explicit interface?
Mr. Adam Burry wrote:
> Hi:
>
> I'm going blind reading the documentation shipped with Compaq Visual
> Fortran.
>
> How does one normally pass strings around in Fortran? My readng
> suggests that they always have to be of known length. My compiler does
> not seem to like the following, for example:
>
> SUBROUTINE Set_Filename ( strFilename )
> CHARACTER(LEN=*) strFilename
> ! some code
> END SUBROUTINE
>
> But it is happy with: "CHARACTER(LEN=60)", for example. Is this like
> saying char[60] in C? Isn't that evil?
>
> I'm coming from a C++ background.
>
> Adam
-- posted from Netscape
- Next message: Gary L. Scott: "Re: Fortran Forum - Oh Boy"
- Previous message: Gary L. Scott: "Re: Binary operations in FORTRAN"
- In reply to: Mr. Adam Burry: "variable length strings"
- Next in thread: Richard Maine: "Re: variable length strings"
- Reply: Richard Maine: "Re: variable length strings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|