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 seems to be used only in the subroutine sname()
which seems to be
deprecated, maybe this funtcion is unneccessary.
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=1), | intent(inout) | :: | s(*) |
String array |
||
integer, | intent(in) | :: | max |
Maximum size of the string |