Silverfrost Forums

Welcome to our forums

String length

6 Oct 2008 8:22 #3880

In GNU F77 there is a command LNBLNK which computes the index position of the LAST non-blank character.

Is there a similar routine in FTN77?

7 Oct 2008 1:08 #3882

Len_trim is an intrinsic in ftn95. I'm not sure about ftn77.

7 Oct 2008 8:38 #3883

Try LENG.

7 Oct 2008 12:13 #3885

I didn't think that LENG was part of the Fortran77 standard was it? In any case writing a routine to do this is very trivial.

7 Oct 2008 12:32 #3886

LENG is not in the Fortran 77 standard. This function was not included in the stardard (as LEN_TRIM) until Fortran 90.

7 Oct 2008 3:30 #3887

I wonder why it wasn't part of the Fortran 77 standard. It was more than 30 years ago so I guess we may never know.

Please login to reply.