mod_length Module

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.


Functions

public function length(s, max)

Author
Who wrote this function
License
Creative Commons License
Category
input-output, KKrhost

F i n d s

t h e

l e n g t h

o f

a

s t r i n g

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=1), intent(inout) :: s(*)

String array

integer, intent(in) :: max

Maximum size of the string

Return Value integer