Removes every character in chars from both ends of string. For a String, chars is optional and defaults
to whitespace. trim(string) with one character argument is still the intrinsic trim.
Not elemental, like the intrinsic trim, since the length of the result depends on the value of string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| character(len=*), | intent(in) | :: | chars |