mod_lngstring 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 routine seems to do the same than the length() function. Both seem to be unnecessary if one instead uses fortran intrinsic functions.


Functions

public function lngstring(string, lstrmax)

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=*), intent(in) :: string

Input string

integer, intent(in) :: lstrmax

Maximum length of the string

Return Value integer