trim Interface

public interface trim

Returns the character sequence hold by the string without trailing spaces.

This method is elemental and returns a scalar character value.


Module Procedures

private elemental function trim_string(string) result(trimmed_string)

Returns the character sequence hold by the string without trailing spaces.

Arguments

Type IntentOptional Attributes Name
type(string_type), intent(in) :: string

Return Value type(string_type)