Left pad the input string with ” ” (1 whitespace)
Returns a new string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | output_length |
pure function padl_char_default(string, output_length) result(res) character(len=*), intent(in) :: string integer, intent(in) :: output_length character(len=max(len(string), output_length)) :: res res = padl(string, output_length, " ") end function padl_char_default