Many ASCII codes are not associated with a printable character and thus it can be hard to determine all the characters in a string just by printing it to standard output. The present subroutine takes a string, chops it into individual characters, and prints the ASCII code of each character plus its associated printable character, if there is one.
subroutine dumpString(str) character(*), intent(in) :: str end subroutine dumpString