Path: utzoo!attcan!uunet!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!harriett!hirchert From: hirchert@harriett.ncsa.uiuc.edu (Kurt Hirchert) Newsgroups: comp.lang.fortran Subject: Re: String manipulation. Message-ID: <1990Oct24.163357.4316@ux1.cso.uiuc.edu> Date: 24 Oct 90 16:33:57 GMT References: Sender: news@ux1.cso.uiuc.edu (News) Reply-To: hirchert@harriett.ncsa.uiuc.edu (Kurt Hirchert) Distribution: comp Organization: National Center for Supercomputing Applications Lines: 15 In article quan@sol.surv.utas.oz (Stephen Quan) writes: >I need to do some string manipulation with a type : character*128. >Can I do the following? > > character*128 str1 > character str2(128) > equivalence (str1,str2) Yes, it is standard FORTRAN 77. The only way you should encounter any difficulty with a conforming compiler is if the maximum length of a character string was set to something shorter than 128 characters. I don't know of any compiler with a limit that short, but the standard would permit it. -- Kurt W. Hirchert hirchert@ncsa.uiuc.edu National Center for Supercomputing Applications