C Library Functions  - tolower (3)

NAME

tolower(3f) - [M_strings__chars:CASE] changes a string to lowercase over specified range (LICENSE:MIT)

CONTENTS

Synopsis
Description
Options
Returns
Examples
Author
License

SYNOPSIS

pure function tolower(str,begin,end) result (string)

    character(len=1),intent(in) :: str(:)
    character(len=1)            :: string(size(str)

DESCRIPTION

tolower(str) returns a copy of the ASCII character array with all characters converted to miniscule (ie. "lowercase")

OPTIONS

str character array to convert to miniscule

RETURNS

tolower
  copy of the input array with all characters converted to lowercase.

EXAMPLES

Sample program:

      program demo_tolower
      use M_strings__chars, only: tolower
      implicit none
      character(len=1),allocatable  :: s(:)
         s=transfer(’ ABCDEFG abcdefg ’,’A’,size=17)
         write(*,*) ’mixed-case input string is ....’,s
         write(*,*) ’lower-case output string is ...’,tolower(s)
      end program demo_tolower

AUTHOR

John S. Urban

LICENSE

    MIT


Nemo Release 3.1 tolower (3) August 28, 2026
Generated by manServer 1.08 from 41df8909-9c8c-4090-afdb-53c41367c422 using man macros.