Loading...
Searching...
No Matches
len Interface Reference

Definition

Return the length of a string.

Remarks

Definition at line 130 of file string.f90.


The documentation for this interface was generated from the following file:

Methods

◆ string_len()

elemental integer function string_len ( class(string), intent(in) this)

Length of the string entity.

Parameters
[in]thisstring

Examples

type(string) :: s
integer :: l
s = string('foo ')
l = len(s)
! the value of l is 4
Returns
An integer corresponding to the length of the string.

Remarks

Definition at line 230 of file string.f90.