Log In | Get Help   
Home My Page Projects Code Snippets Project Openings transition state search using dynamics
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files Wiki
[tsscds] View of /trunk/src/lowercase.f90
[tsscds] / trunk / src / lowercase.f90 Repository:
ViewVC logotype

View of /trunk/src/lowercase.f90

Parent Directory Parent Directory | Revision Log Revision Log


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

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge