Revision 279 -
(download)
(annotate)
Wed Jun 27 20:30:08 2018 UTC
(5 years, 11 months ago)
by baaden File size: 507 byte(s)
move to trunk 1
function string_tolower( string ) result (new)
character(len=*) :: string
character(len=len(string)) :: new
integer :: i
integer :: k
length = len(string)
new = string
do i = 1,len(string)
k = iachar(string(i:i))
if ( k >= iachar('A') .and. k <= iachar('Z') ) then
k = k + iachar('a') - iachar('A')
new(i:i) = achar(k)
endif
enddo
end function string_tolower