Path: utzoo!attcan!uunet!van-bc!ubc-cs!alberta!mts.ucs.UAlberta.CA!ualtavm!GHAVERLA From: GHAVERLA@vm.ucs.UAlberta.CA (G Haverland) Newsgroups: comp.lang.fortran Subject: Re: String manipulation. Message-ID: <1083@vm.ucs.UAlberta.CA> Date: 28 Oct 90 16:50:11 GMT References: <1990Oct24.163357.4316@ux1.cso.uiuc.edu> Reply-To: GHAVERLA@vm.ucs.UAlberta.CA Distribution: comp Organization: University of Alberta VM/CMS Lines: 20 Disclaimer: Author bears full responsibility for contents of this article >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) > I tried to do something similar a few years ago with the Absoft FORTRAN compiler on the HP Integral PC. In one case (I believe the array of characters) there was one character per word (32 bits), and the other case there was 4 characters per word. I was examining the data space with the debugger when I found this out. I don't remember if I had equivalenced the variables though. Gordon Haverland, U of Alberta SLOWPOKE Facility