c in lowercase (ASCII letters only; other bytes, including UTF-8, are unchanged).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=1), | intent(in) | :: | c |
the character |
elemental character function lower_char(c) !! `c` in lowercase (ASCII letters only; other bytes, including UTF-8, are unchanged). character, intent(in) :: c !! the character if (c >= 'A' .and. c <= 'Z') then lower_char = achar(iachar(c) + 32) else lower_char = c end if end function lower_char