RE: question on character-like variable defination



In a previous article, "sunnylele" <sjsongjing@xxxxxxxxx> wrote:
Hi, all,

in Fortran77, normally a variable to store a string can be defined as:
character file
-------------------------------------------------------
But how to interpret the following defination:

character*30 files,fileid,prname,nmname,nmriname,inhnam,fidnam,
# mgc1t1,mgc2t1,mgc1p1,mgc2p1,mgc1g1,mgc2g1
character flags*5,tfile*80,cmt*74
-------------------------------------------------------
what does it mean by "character*30" and "character flags*5"

Thanks!

Jing
It's the new way - flags*5 means flags is character*5
That way you don't have to have a separate character statment
for each length you need.
Chris

.



Relevant Pages

  • Re: iswspace and iswprint
    ... "Each of the following functions returns true for each wide character ... may differ with respect to wide characters other than L' ' that are both ... The bottom line is I interpret this as meaning: ... VC++ .NET returning 1 is not compliant with the ISO standard. ...
    (comp.lang.c)
  • Re: Character encoding between Win and *nix
    ... > I want to use a Windows client to send a character stream via http ... that should interpret my characters as such. ... If the server is getting those bytes, chances are it is because the ... the whole header (and not just the one character). ...
    (comp.lang.java.programmer)
  • Re: Regular Expressions
    ... > Not sure which greps this might apply to but mine will interpret a * ... special meaning) when in the beginning of a regular expression, ... "*U" will match the character '*' ...
    (comp.unix.shell)
  • Re: Entire string lost when removing null characters
    ... tcomer wrote: ... The data you posted contains things that, at least to me, look like it may be intended to be interpreted as a struct of some sort, with character arrays embedded. ... Perhaps a more appropriate solution would be to interpret it that way instead. ... Is there some documentation for this protocol that you can share, that would provide some insight into the larger issue you're dealing with? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: converting to STRICT (href values and target attribute)
    ... © is a defined character entity in HTML. ... CDATA, and browsers are supposed to interpret CDATA: ... Replace character entities with characters, ...
    (alt.html)