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) June 29, 2025
Generated by manServer 1.08 from e17264ae-11a6-4016-9117-37b5f5746da2 using man macros.