View previous topic :: View next topic |
Author |
Message |
Myddelton
Joined: 05 Oct 2008 Posts: 2
|
Posted: Mon Oct 06, 2008 9:22 pm Post subject: String length |
|
|
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? |
|
Back to top |
|
 |
JohnCampbell
Joined: 16 Feb 2006 Posts: 2615 Location: Sydney
|
Posted: Tue Oct 07, 2008 2:08 am Post subject: |
|
|
Len_trim is an intrinsic in ftn95. I'm not sure about ftn77. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Oct 07, 2008 9:38 am Post subject: |
|
|
Try LENG. |
|
Back to top |
|
 |
JohnHorspool
Joined: 26 Sep 2005 Posts: 270 Location: Gloucestershire UK
|
Posted: Tue Oct 07, 2008 1:13 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Oct 07, 2008 1:32 pm Post subject: |
|
|
LENG is not in the Fortran 77 standard.
This function was not included in the stardard (as LEN_TRIM) until Fortran 90. |
|
Back to top |
|
 |
Robert

Joined: 29 Nov 2006 Posts: 457 Location: Manchester
|
Posted: Tue Oct 07, 2008 4:30 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
|