Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!samsung!usc!ucsd!ucbvax!CIMS18.NYU.EDU!mckenney From: mckenney@CIMS18.NYU.EDU (Alan M. McKenney) Newsgroups: comp.lang.fortran Subject: LEN and CHARACTER arrays. Message-ID: <9101281822.AA03827@cims18.nyu.edu> Date: 28 Jan 91 18:22:42 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 25 Here's a question for all you FORTRAN language lawyers: Given a character (dummy argument) array declared CHARACTER*(*) CARRAY(*) what is the ANSI-standard-conformant way of getting the length of each element? From reading the standard, I had gotten the impression that LEN(CARRAY) was correct, and it works on my Sun workstation, but it doesn't work on our CONVEX. Instead, I had to write LEN(CARRAY(1)). Is the CONVEX compiler correct? Or was my impression correct, and the CONVEX compiler has a bug? Or is this an area of ambiguity? The code I am writing has to be ultra-portable, so it is important what is standard, rather than just what compilers A, B, and C accept. Perhaps it would be best to just E-mail me, and I will post the consensus ("one if by land,...") Alan McKenney E-mail: mckenney@cs.nyu.edu (INTERNET) Courant Institute,NYU ...!cmcl2!cs.nyu.edu!mckenney (UUCP)