Finds the length of a string
Note
Jonathan Chico: Wouldn't using the fortran intrinsic functions such as trim()
and len()
be a better solution to this?
Jonathan Chico: This routine seems to do the same than the length()
function. Both
seem to be unnecessary if one instead uses fortran intrinsic functions.
F i n d s
t h e
l e n g t h
o f
a
s t r i n g
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
Input string |
||
integer, | intent(in) | :: | lstrmax |
Maximum length of the string |