Remove leading and trailing whitespace characters.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string |
pure function strip_string(string) result(stripped_string) ! Avoid polluting the module scope and use the assignment only in this scope use pic_string_type, only: assignment(=) type(string_type), intent(in) :: string type(string_type) :: stripped_string stripped_string = strip(char(string)) end function strip_string